mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-25 01:31:08 +00:00
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:
parent
ffeaf71ee3
commit
2454f0fc96
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue