mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
([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:
parent
82c043f108
commit
6f9e959f46
2 changed files with 10 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue