mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Changed keys argument type to (const id <NSCopying>[]) in
-[NSDictionary initWithObjects:forKeys:count:] and +dictionaryWithObjects:forKeys:count:, to follow the current Cocoa API. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37431 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
805cf33e93
commit
52fa3a2c07
6 changed files with 24 additions and 13 deletions
|
@ -261,7 +261,7 @@ static Class gcClass = 0;
|
|||
}
|
||||
|
||||
- (id) initWithObjects: (const id[])objects
|
||||
forKeys: (const id[])keys
|
||||
forKeys: (const id <NSCopying>[])keys
|
||||
count: (NSUInteger)count
|
||||
{
|
||||
NSUInteger size = (count * 4) / 3;
|
||||
|
@ -284,7 +284,7 @@ static Class gcClass = 0;
|
|||
keyStruct = NSZoneMalloc(z, sizeof(GCInfo));
|
||||
valueStruct = NSZoneMalloc(z, sizeof(GCInfo));
|
||||
keyStruct->object = keys[count];
|
||||
keyStruct->isGCObject = [keys[count] isKindOfClass: gcClass];
|
||||
keyStruct->isGCObject = [(id <NSObject>)keys[count] isKindOfClass: gcClass];
|
||||
valueStruct->object = objects[count];
|
||||
valueStruct->isGCObject
|
||||
= [objects[count] isKindOfClass: gcClass];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue