mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-20 12:16:40 +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
|
@ -85,7 +85,9 @@ static Class NSMutableArray_concrete_class;
|
|||
|
||||
+ allocWithZone: (NSZone*)z
|
||||
{
|
||||
return NSAllocateObject ([self _concreteClass], 0, z);
|
||||
if ([self class] == [NSArray class])
|
||||
return NSAllocateObject ([self _concreteClass], 0, z);
|
||||
return [super allocWithZone: z];
|
||||
}
|
||||
|
||||
+ array
|
||||
|
@ -707,7 +709,9 @@ static NSString *indentStrings[] = {
|
|||
|
||||
+ allocWithZone: (NSZone*)z
|
||||
{
|
||||
return NSAllocateObject ([self _mutableConcreteClass], 0, z);
|
||||
if ([self class] == [NSMutableArray class])
|
||||
return NSAllocateObject ([self _mutableConcreteClass], 0, z);
|
||||
return [super allocWithZone: z];
|
||||
}
|
||||
|
||||
/* This is the desgnated initializer for NSMutableArray */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue