summaryrefslogtreecommitdiffstats
path: root/macosx/NSJSONSerialization+HBAdditions.m
diff options
context:
space:
mode:
authorDamiano Galassi <damiog@gmail.com>2019-08-12 10:19:00 +0200
committerDamiano Galassi <damiog@gmail.com>2019-08-12 10:19:00 +0200
commitc5a4d181ebedbdee2bdfefeffa28128d0b9c95c1 (patch)
tree635e3d036b7065987f29d38489838ceb6cdd11eb /macosx/NSJSONSerialization+HBAdditions.m
parent76d08e5d4bb6287de03519cf43cc298d2d896a7a (diff)
MacGui: enable and fix more warnings. Review nullability annotations.
Diffstat (limited to 'macosx/NSJSONSerialization+HBAdditions.m')
-rw-r--r--macosx/NSJSONSerialization+HBAdditions.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/NSJSONSerialization+HBAdditions.m b/macosx/NSJSONSerialization+HBAdditions.m
index e7b981ce9..b0cb10a2f 100644
--- a/macosx/NSJSONSerialization+HBAdditions.m
+++ b/macosx/NSJSONSerialization+HBAdditions.m
@@ -8,7 +8,7 @@
@implementation NSJSONSerialization (HBAdditions)
-+ (id)HB_JSONObjectWithUTF8String:(const char *)nullTerminatedCString options:(NSJSONReadingOptions)opt error:(NSError **)error;
++ (id)HB_JSONObjectWithUTF8String:(const char *)nullTerminatedCString options:(NSJSONReadingOptions)opt error:(NSError * __autoreleasing *)error
{
if (!nullTerminatedCString) {
return nil;
@@ -18,7 +18,7 @@
return result;
}
-+ (NSString *)HB_StringWithJSONObject:(id)obj options:(NSJSONWritingOptions)opt error:(NSError **)error
++ (NSString *)HB_StringWithJSONObject:(id)obj options:(NSJSONWritingOptions)opt error:(NSError * __autoreleasing *)error
{
NSData *data = [NSJSONSerialization dataWithJSONObject:obj options:opt error:error];
if (data)