([GSCSubString -copy]): Add as a stopgap workaround for problemes uncovered by the previous change.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18022 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
alexm 2003-11-02 00:56:07 +00:00
parent 82c043f108
commit 6f9e959f46
2 changed files with 10 additions and 1 deletions

View file

@ -2211,7 +2211,7 @@ transmute(ivars self, NSString *aString)
obj = [obj initWithCString: _contents.c length: _count];
return obj;
}
else
else
{
return RETAIN(self);
}
@ -2232,6 +2232,10 @@ transmute(ivars self, NSString *aString)
/*
* Assume that a copy should be a new string, never just a retained substring.
*/
- (id) copy
{
return [self copyWithZone: NSDefaultMallocZone()];
}
- (id) copyWithZone: (NSZone*)z
{
NSString *obj;