([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:
Alexander Malmberg 2003-11-02 00:56:07 +00:00
parent eab1a62b9f
commit 5bd9bdbc5c
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2003-11-02 01:53 Alexander Malmberg <alexander@malmberg.org>
* Source/GSString.m ([GSCSubString -copy]): Add as a stopgap
workaround for problems uncovered by the previous change.
Sat Nov 01 11:10:00 2003 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSString.m: ([-copyWithZone:]) always do true copy

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;