mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
Bugfixes suggested by Benhur-de-Oliveira.Stein@imag.fr
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3555 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
19b8cf05de
commit
29132b8bad
5 changed files with 38 additions and 7 deletions
|
@ -77,7 +77,9 @@ static Class NSMutableDictionary_concrete_class;
|
|||
|
||||
+ allocWithZone: (NSZone*)z
|
||||
{
|
||||
return NSAllocateObject([self _concreteClass], 0, z);
|
||||
if ([self class] == [NSDictionary class])
|
||||
return NSAllocateObject([self _concreteClass], 0, z);
|
||||
return [super allocWithZone: z];
|
||||
}
|
||||
|
||||
/* This is the designated initializer */
|
||||
|
@ -227,7 +229,7 @@ static Class NSMutableDictionary_concrete_class;
|
|||
int argi = 1;
|
||||
|
||||
va_start (ap, firstObject);
|
||||
if (firstObject != nil)
|
||||
if (firstObject == nil)
|
||||
{
|
||||
return [self init];
|
||||
}
|
||||
|
@ -682,7 +684,9 @@ static NSString *indentStrings[] = {
|
|||
|
||||
+ allocWithZone: (NSZone*)z
|
||||
{
|
||||
return NSAllocateObject([self _mutableConcreteClass], 0, z);
|
||||
if ([self class] == [NSMutableDictionary class])
|
||||
return NSAllocateObject([self _mutableConcreteClass], 0, z);
|
||||
return [super allocWithZone: z];
|
||||
}
|
||||
|
||||
/* This is the designated initializer */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue