mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
([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:
parent
62baf7de56
commit
1dda463cf2
1 changed files with 6 additions and 6 deletions
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue