mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 09:02:01 +00:00
More ARC fixups: id* -> const id* in NSSet
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33666 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0ccd438c1a
commit
e2c5fe29fe
4 changed files with 8 additions and 8 deletions
|
@ -47,7 +47,7 @@ extern "C" {
|
||||||
+ (id) setWithObject: (id)anObject;
|
+ (id) setWithObject: (id)anObject;
|
||||||
+ (id) setWithObjects: (id)firstObject, ...;
|
+ (id) setWithObjects: (id)firstObject, ...;
|
||||||
#if OS_API_VERSION(GS_API_MACOSX, GS_API_LATEST)
|
#if OS_API_VERSION(GS_API_MACOSX, GS_API_LATEST)
|
||||||
+ (id) setWithObjects: (id*)objects
|
+ (id) setWithObjects: (const id*)objects
|
||||||
count: (NSUInteger)count;
|
count: (NSUInteger)count;
|
||||||
#endif
|
#endif
|
||||||
+ (id) setWithSet: (NSSet*)aSet;
|
+ (id) setWithSet: (NSSet*)aSet;
|
||||||
|
@ -62,7 +62,7 @@ extern "C" {
|
||||||
- (id) init;
|
- (id) init;
|
||||||
- (id) initWithArray: (NSArray*)other;
|
- (id) initWithArray: (NSArray*)other;
|
||||||
- (id) initWithObjects: (id)firstObject, ...;
|
- (id) initWithObjects: (id)firstObject, ...;
|
||||||
- (id) initWithObjects: (id*)objects
|
- (id) initWithObjects: (const id*)objects
|
||||||
count: (NSUInteger)count;
|
count: (NSUInteger)count;
|
||||||
- (id) initWithSet: (NSSet*)other;
|
- (id) initWithSet: (NSSet*)other;
|
||||||
- (id) initWithSet: (NSSet*)other copyItems: (BOOL)flag;
|
- (id) initWithSet: (NSSet*)other copyItems: (BOOL)flag;
|
||||||
|
|
|
@ -227,7 +227,7 @@ static GC_descr nodeDesc; // Type descriptor for map node.
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (id) initWithObjects: (id*)objs count: (NSUInteger)c
|
- (id) initWithObjects: (const id*)objs count: (NSUInteger)c
|
||||||
{
|
{
|
||||||
NSUInteger i;
|
NSUInteger i;
|
||||||
|
|
||||||
|
|
|
@ -252,7 +252,7 @@ static Class mutableSetClass;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Designated initialiser */
|
/* Designated initialiser */
|
||||||
- (id) initWithObjects: (id*)objs count: (NSUInteger)c
|
- (id) initWithObjects: (const id*)objs count: (NSUInteger)c
|
||||||
{
|
{
|
||||||
NSUInteger i;
|
NSUInteger i;
|
||||||
|
|
||||||
|
@ -604,7 +604,7 @@ static Class mutableSetClass;
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (id) initWithObjects: (id*)objects
|
- (id) initWithObjects: (const id*)objects
|
||||||
count: (NSUInteger)count
|
count: (NSUInteger)count
|
||||||
{
|
{
|
||||||
self = [self initWithCapacity: count];
|
self = [self initWithCapacity: count];
|
||||||
|
|
|
@ -110,7 +110,7 @@ static Class NSMutableSet_concrete_class;
|
||||||
/**
|
/**
|
||||||
* New set containing (unique elements of) objects.
|
* New set containing (unique elements of) objects.
|
||||||
*/
|
*/
|
||||||
+ (id) setWithObjects: (id*)objects
|
+ (id) setWithObjects: (const id*)objects
|
||||||
count: (NSUInteger)count
|
count: (NSUInteger)count
|
||||||
{
|
{
|
||||||
return AUTORELEASE([[self allocWithZone: NSDefaultMallocZone()]
|
return AUTORELEASE([[self allocWithZone: NSDefaultMallocZone()]
|
||||||
|
@ -314,7 +314,7 @@ static Class NSMutableSet_concrete_class;
|
||||||
* and needs to be re-implemented in subclasses in order to have all
|
* and needs to be re-implemented in subclasses in order to have all
|
||||||
* other initialisers work.
|
* other initialisers work.
|
||||||
*/
|
*/
|
||||||
- (id) initWithObjects: (id*)objects
|
- (id) initWithObjects: (const id*)objects
|
||||||
count: (NSUInteger)count
|
count: (NSUInteger)count
|
||||||
{
|
{
|
||||||
self = [self init];
|
self = [self init];
|
||||||
|
@ -1005,7 +1005,7 @@ static Class NSMutableSet_concrete_class;
|
||||||
[self subclassResponsibility: _cmd];
|
[self subclassResponsibility: _cmd];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (id) initWithObjects: (id*)objects
|
- (id) initWithObjects: (const id*)objects
|
||||||
count: (NSUInteger)count
|
count: (NSUInteger)count
|
||||||
{
|
{
|
||||||
self = [self initWithCapacity: count];
|
self = [self initWithCapacity: count];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue