mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-02 17:41:05 +00:00
Fix for #21133
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25514 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e5379ee993
commit
60f5134a22
2 changed files with 9 additions and 4 deletions
|
@ -1509,7 +1509,7 @@ failure:
|
|||
|
||||
- (void) encodeWithCoder: (NSCoder*)coder
|
||||
{
|
||||
if([coder allowsKeyedCoding])
|
||||
if ([coder allowsKeyedCoding])
|
||||
{
|
||||
[coder encodeObject: self];
|
||||
}
|
||||
|
@ -1523,7 +1523,7 @@ failure:
|
|||
{
|
||||
id obj = nil;
|
||||
|
||||
if([coder allowsKeyedCoding])
|
||||
if ([coder allowsKeyedCoding])
|
||||
{
|
||||
obj = [coder decodeObject];
|
||||
}
|
||||
|
@ -2434,7 +2434,7 @@ failure:
|
|||
|
||||
- (Class) classForCoder
|
||||
{
|
||||
return dataMalloc; /* Will not be static data when decoded. */
|
||||
return NSDataAbstract;
|
||||
}
|
||||
|
||||
/* Basic methods */
|
||||
|
@ -3070,7 +3070,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
|
|||
|
||||
- (Class) classForCoder
|
||||
{
|
||||
return mutableDataMalloc;
|
||||
return NSMutableDataAbstract;
|
||||
}
|
||||
|
||||
- (id) copy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue