From 2454f0fc9648ae1259577d43a15e68852acebee1 Mon Sep 17 00:00:00 2001 From: Andrew McCallum Date: Wed, 23 Aug 1995 15:51:05 +0000 Subject: [PATCH] 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 --- Source/String.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/String.m b/Source/String.m index ae1e6c3ef..7d891072c 100644 --- a/Source/String.m +++ b/Source/String.m @@ -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;