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:
David Chisnall 2011-07-31 18:34:40 +00:00
parent 2fabc5d951
commit 8713e21d91
4 changed files with 8 additions and 8 deletions

View file

@ -47,7 +47,7 @@ extern "C" {
+ (id) setWithObject: (id)anObject;
+ (id) setWithObjects: (id)firstObject, ...;
#if OS_API_VERSION(GS_API_MACOSX, GS_API_LATEST)
+ (id) setWithObjects: (id*)objects
+ (id) setWithObjects: (const id*)objects
count: (NSUInteger)count;
#endif
+ (id) setWithSet: (NSSet*)aSet;
@ -62,7 +62,7 @@ extern "C" {
- (id) init;
- (id) initWithArray: (NSArray*)other;
- (id) initWithObjects: (id)firstObject, ...;
- (id) initWithObjects: (id*)objects
- (id) initWithObjects: (const id*)objects
count: (NSUInteger)count;
- (id) initWithSet: (NSSet*)other;
- (id) initWithSet: (NSSet*)other copyItems: (BOOL)flag;

View file

@ -227,7 +227,7 @@ static GC_descr nodeDesc; // Type descriptor for map node.
return self;
}
- (id) initWithObjects: (id*)objs count: (NSUInteger)c
- (id) initWithObjects: (const id*)objs count: (NSUInteger)c
{
NSUInteger i;

View file

@ -252,7 +252,7 @@ static Class mutableSetClass;
}
/* Designated initialiser */
- (id) initWithObjects: (id*)objs count: (NSUInteger)c
- (id) initWithObjects: (const id*)objs count: (NSUInteger)c
{
NSUInteger i;
@ -604,7 +604,7 @@ static Class mutableSetClass;
return self;
}
- (id) initWithObjects: (id*)objects
- (id) initWithObjects: (const id*)objects
count: (NSUInteger)count
{
self = [self initWithCapacity: count];

View file

@ -110,7 +110,7 @@ static Class NSMutableSet_concrete_class;
/**
* New set containing (unique elements of) objects.
*/
+ (id) setWithObjects: (id*)objects
+ (id) setWithObjects: (const id*)objects
count: (NSUInteger)count
{
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
* other initialisers work.
*/
- (id) initWithObjects: (id*)objects
- (id) initWithObjects: (const id*)objects
count: (NSUInteger)count
{
self = [self init];
@ -1005,7 +1005,7 @@ static Class NSMutableSet_concrete_class;
[self subclassResponsibility: _cmd];
}
- (id) initWithObjects: (id*)objects
- (id) initWithObjects: (const id*)objects
count: (NSUInteger)count
{
self = [self initWithCapacity: count];