mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Set isa to correct class.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@14951 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1314b07e03
commit
dd5cc6f3ee
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2002-11-07 02:21 Alexander Malmberg <alexander@malmberg.org>
|
||||
|
||||
* Source/GSString.m: (-makeImmutableCopyOnFail:): Set isa to correct
|
||||
class.
|
||||
|
||||
2002-11-04 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSArray.m: Ensured some documentation in place for almost all
|
||||
|
|
|
@ -2922,7 +2922,10 @@ transmute(ivars self, NSString *aString)
|
|||
|
||||
- (id) makeImmutableCopyOnFail: (BOOL)force
|
||||
{
|
||||
isa = [GSString class];
|
||||
if (_flags.wide == 1)
|
||||
isa = [GSUnicodeString class];
|
||||
else
|
||||
isa = [GSCString class];
|
||||
return self;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue