mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
Fixed error in DO - NXConstantString should always encode itsself as an
NSGCString git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3106 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
bebb8238e5
commit
12c5e09764
1 changed files with 20 additions and 0 deletions
|
@ -131,6 +131,16 @@
|
|||
}
|
||||
}
|
||||
|
||||
- (Class) classForArchiver
|
||||
{
|
||||
return [self class];
|
||||
}
|
||||
|
||||
- (Class) classForCoder
|
||||
{
|
||||
return [self class];
|
||||
}
|
||||
|
||||
- (Class) classForPortCoder
|
||||
{
|
||||
return [self class];
|
||||
|
@ -703,11 +713,21 @@ stringDecrementCountAndFillHoleAt(NSGMutableCStringStruct *self,
|
|||
* archive and readi it back, the new copy will never be deallocated -
|
||||
* causing a memory leak. So we tell the system to use the super class.
|
||||
*/
|
||||
- (Class)classForArchiver
|
||||
{
|
||||
return [self superclass];
|
||||
}
|
||||
|
||||
- (Class)classForCoder
|
||||
{
|
||||
return [self superclass];
|
||||
}
|
||||
|
||||
- (Class)classForPortCoder
|
||||
{
|
||||
return [self superclass];
|
||||
}
|
||||
|
||||
- (void)dealloc
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue