mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Annotate uniquing for static analyzer
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32095 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
78009cfe59
commit
d060289f36
1 changed files with 2 additions and 2 deletions
|
@ -144,7 +144,7 @@ extern "C" {
|
|||
* </code>
|
||||
* </p>
|
||||
*/
|
||||
- (id) unique: (id)anObject;
|
||||
- (id) unique: (id) NS_CONSUMED anObject NS_RETURNS_RETAINED;
|
||||
@end
|
||||
|
||||
/*
|
||||
|
@ -165,7 +165,7 @@ void GSUniquing(BOOL flag);
|
|||
* Thus, an -init method that wants to implement uniquing simply needs
|
||||
* to end with 'return GSUnique(self);'
|
||||
*/
|
||||
id GSUnique(id anObject);
|
||||
id GSUnique(id NS_CONSUMED anObject) NS_RETURNS_RETAINED;
|
||||
|
||||
/*
|
||||
* Management functions -
|
||||
|
|
Loading…
Reference in a new issue