Missing part of the NSArray update.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33609 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
theraven 2011-07-23 12:02:04 +00:00
parent d5d2611a60
commit 9dbeddeeae

View file

@ -145,7 +145,7 @@ static Class gcClass = 0;
} }
} }
- (id) initWithObjects: (id*)objects count: (NSUInteger)count - (id) initWithObjects: (const id[])objects count: (NSUInteger)count
{ {
_contents = NSZoneMalloc([self zone], count * (sizeof(id) + sizeof(BOOL))); _contents = NSZoneMalloc([self zone], count * (sizeof(id) + sizeof(BOOL)));
_isGCObject = (BOOL*)&_contents[count]; _isGCObject = (BOOL*)&_contents[count];
@ -297,7 +297,7 @@ static Class gcClass = 0;
return self; return self;
} }
- (id) initWithObjects: (id *)objects count: (NSUInteger)count - (id) initWithObjects: (const id [])objects count: (NSUInteger)count
{ {
self = [self initWithCapacity: count]; self = [self initWithCapacity: count];
if (self != nil) if (self != nil)