Fix bug by which [NSString mutableCopy] returned a String, not NSString.

([String -copyWithZone:]): Renamed from -copy.
([String -mutableCopyWithZone:]): Renamed from -mutableCopy.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@577 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Andrew McCallum 1995-08-23 15:51:05 +00:00
parent ffeaf71ee3
commit 2454f0fc96

View file

@ -258,14 +258,14 @@
return [self cStringCopyRange:((IndexRange){0, [self count]})];
}
- copy
- copyWithZone: (NSZone*)z
{
return [[[self class] alloc] initWithString:(NSString*)self];
return [[[self class] allocWithZone:z] initWithString:(NSString*)self];
}
- mutableCopy
- mutableCopyWithZone: (NSZone*)z
{
return [[MutableCString alloc] initWithString:(NSString*)self];
return [[MutableCString allocWithZone:z] initWithString:(NSString*)self];
}
// TESTING;