([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:
Andrew McCallum 1995-11-03 22:18:47 +00:00
parent 62baf7de56
commit 1dda463cf2

View file

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