mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
NSPropertyList+PLUtil: add missing headers, fix nil/id warning
My old GNUStep environment got wiped due to some improper Windows and UEFI monkeying. Please excuse the slow progress for a while.
This commit is contained in:
parent
f092bb0dd1
commit
8b46d8d042
1 changed files with 5 additions and 3 deletions
|
@ -24,6 +24,8 @@
|
|||
*/
|
||||
#import "NSPropertyList+PLUtil.h"
|
||||
#import "GNUstepBase/GSObjCRuntime.h"
|
||||
#import "Foundation/NSData.h"
|
||||
#import "Foundation/NSUserDefaults.h"
|
||||
#import "Foundation/NSJSONSerialization.h"
|
||||
|
||||
static IMP originalRead = 0;
|
||||
|
@ -104,9 +106,9 @@ OAppend(id obj, NSDictionary *loc, unsigned lev, unsigned step,
|
|||
options:jsonOptions
|
||||
error:&myError];
|
||||
}
|
||||
if (error != nil)
|
||||
if (error != NULL)
|
||||
*error = myError;
|
||||
if (*aFormat != nil)
|
||||
if (*aFormat != NULL)
|
||||
*aFormat = format;
|
||||
return prop;
|
||||
}
|
||||
|
@ -135,4 +137,4 @@ OAppend(id obj, NSDictionary *loc, unsigned lev, unsigned step,
|
|||
method_getImplementation(replacementWrite),
|
||||
method_getTypeEncoding(replacementWrite));
|
||||
}
|
||||
@end
|
||||
@end
|
||||
|
|
Loading…
Reference in a new issue