summaryrefslogtreecommitdiffstats
path: root/macosx/HBCodingUtilities.h
diff options
context:
space:
mode:
authorritsuka <[email protected]>2015-05-30 07:17:22 +0000
committerritsuka <[email protected]>2015-05-30 07:17:22 +0000
commit2837048a59ac5beab0b3428ca89c86857765de0a (patch)
tree15417d195f7223d85fac22560479717dfda31101 /macosx/HBCodingUtilities.h
parent93fb333304b2493a50623b04caac95b53eca3240 (diff)
MacGui: add nullability annotations to the headers and use weak where is possible.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7244 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBCodingUtilities.h')
-rw-r--r--macosx/HBCodingUtilities.h6
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