([NSDictionary +dictionary]): Use +alloc, not _concreteClass. This

makes [NSMutableDictionary +dictionary] and friends do the right thing.
([NSDictionary +dictionaryWithObjects:forKeys:count:]): Likewise.
([NSMutableDictionary +dictionaryWithCapacity:]): Likewise.
(Problem reported by Kim Shrier <kim@media.com>.)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@658 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
mccallum 1995-11-03 22:18:47 +00:00
parent ddfa43f663
commit 0a2df82052

View file

@ -67,7 +67,7 @@ static Class NSMutableDictionary_concrete_class;
+ dictionary + dictionary
{ {
return [[[[self _concreteClass] alloc] init] return [[[self alloc] init]
autorelease]; autorelease];
} }
@ -75,7 +75,7 @@ static Class NSMutableDictionary_concrete_class;
forKeys: (NSString**)keys forKeys: (NSString**)keys
count: (unsigned)count count: (unsigned)count
{ {
return [[[[self _concreteClass] alloc] initWithObjects:objects return [[[self alloc] initWithObjects:objects
forKeys:keys forKeys:keys
count:count] count:count]
autorelease]; autorelease];
@ -98,7 +98,7 @@ static Class NSMutableDictionary_concrete_class;
+ dictionaryWithObjects: (NSArray*)objects forKeys: (NSArray*)keys + dictionaryWithObjects: (NSArray*)objects forKeys: (NSArray*)keys
{ {
return [[[[self _concreteClass] alloc] initWithObjects:objects forKeys:keys] return [[[self alloc] initWithObjects:objects forKeys:keys]
autorelease]; autorelease];
} }
@ -286,7 +286,7 @@ static Class NSMutableDictionary_concrete_class;
+ dictionaryWithCapacity: (unsigned)numItems + dictionaryWithCapacity: (unsigned)numItems
{ {
return [[[[self _mutableConcreteClass] alloc] initWithCapacity:numItems] return [[[self alloc] initWithCapacity:numItems]
autorelease]; autorelease];
} }