diff options
Diffstat (limited to 'macosx/HBCodingUtilities.h')
-rw-r--r-- | macosx/HBCodingUtilities.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/macosx/HBCodingUtilities.h b/macosx/HBCodingUtilities.h index fd825971d..c8eb3763e 100644 --- a/macosx/HBCodingUtilities.h +++ b/macosx/HBCodingUtilities.h @@ -21,6 +21,8 @@ #define decodeObjectOrFail(x, class) x = [HBCodingUtilities decodeObjectOfClass:class forKey:OBJC_STRINGIFY(x) decoder:decoder]; if (x == nil) {NSLog(@"Failed to decode: %@", OBJC_STRINGIFY(x)); goto fail;} +NS_ASSUME_NONNULL_BEGIN + @interface HBCodingUtilities : NSObject /** @@ -37,6 +39,8 @@ * * @return the decoder object. */ -+ (id)decodeObjectOfClass:(Class)aClass forKey:(NSString *)key decoder:(NSCoder *)decoder; ++ (nullable id)decodeObjectOfClass:(Class)aClass forKey:(NSString *)key decoder:(NSCoder *)decoder; @end + +NS_ASSUME_NONNULL_END |