diff options
author | ritsuka <[email protected]> | 2015-05-30 07:17:22 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2015-05-30 07:17:22 +0000 |
commit | 2837048a59ac5beab0b3428ca89c86857765de0a (patch) | |
tree | 15417d195f7223d85fac22560479717dfda31101 /macosx/HBPreset.h | |
parent | 93fb333304b2493a50623b04caac95b53eca3240 (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/HBPreset.h')
-rw-r--r-- | macosx/HBPreset.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/macosx/HBPreset.h b/macosx/HBPreset.h index 1b74bcd3a..10cf192d5 100644 --- a/macosx/HBPreset.h +++ b/macosx/HBPreset.h @@ -7,6 +7,8 @@ #import <Foundation/Foundation.h> #import "HBTreeNode.h" +NS_ASSUME_NONNULL_BEGIN + typedef NS_ENUM(NSUInteger, HBPresetFormat) { HBPresetFormatPlist, HBPresetFormatJson, @@ -60,7 +62,7 @@ typedef NS_ENUM(NSUInteger, HBPresetFormat) { /** * A long textual description of the preset. */ -@property (nonatomic, copy) NSString *presetDescription; +@property (nonatomic, copy, nullable) NSString *presetDescription; /** * Whether the preset is one of the HandBrake built-in ones or not. @@ -75,7 +77,7 @@ typedef NS_ENUM(NSUInteger, HBPresetFormat) { /** * The actual content of the preset. */ -@property (nonatomic, strong) NSDictionary *content; +@property (nonatomic, strong, nullable) NSDictionary *content; /** * A dictionary representation of the preset. @@ -83,3 +85,6 @@ typedef NS_ENUM(NSUInteger, HBPresetFormat) { @property (readonly, copy) NSDictionary *dictionary; @end + +NS_ASSUME_NONNULL_END + |