summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLMenuParams.m
diff options
context:
space:
mode:
authorMuller, Alexander (A.) <amulle19@ford.com>2016-12-22 13:35:53 -0500
committerMuller, Alexander (A.) <amulle19@ford.com>2016-12-22 13:35:53 -0500
commitfa27662309f1e491aa5cc8e32ad9615e49124a06 (patch)
tree1d7ea40da2707e05d07d6f5a3656a7ecd4eb3bbe /SmartDeviceLink/SDLMenuParams.m
parent38d57ad153e9ad1d554333ffc2cb3fed9b9e94a5 (diff)
downloadsdl_ios-fa27662309f1e491aa5cc8e32ad9615e49124a06.tar.gz
Added nullability annotation to structs.
Diffstat (limited to 'SmartDeviceLink/SDLMenuParams.m')
-rw-r--r--SmartDeviceLink/SDLMenuParams.m12
1 files changed, 8 insertions, 4 deletions
diff --git a/SmartDeviceLink/SDLMenuParams.m b/SmartDeviceLink/SDLMenuParams.m
index 558f7014a..d20c2ca44 100644
--- a/SmartDeviceLink/SDLMenuParams.m
+++ b/SmartDeviceLink/SDLMenuParams.m
@@ -6,6 +6,8 @@
#import "SDLNames.h"
+NS_ASSUME_NONNULL_BEGIN
+
@implementation SDLMenuParams
- (instancetype)initWithMenuName:(NSString *)menuName parentId:(UInt32)parentId position:(UInt16)position {
@@ -31,7 +33,7 @@
return self;
}
-- (void)setParentID:(NSNumber<SDLInt> *)parentID {
+- (void)setParentID:(nullable NSNumber<SDLInt> *)parentID {
if (parentID != nil) {
[store setObject:parentID forKey:SDLNameParentId];
} else {
@@ -39,11 +41,11 @@
}
}
-- (NSNumber<SDLInt> *)parentID {
+- (nullable NSNumber<SDLInt> *)parentID {
return [store objectForKey:SDLNameParentId];
}
-- (void)setPosition:(NSNumber<SDLInt> *)position {
+- (void)setPosition:(nullable NSNumber<SDLInt> *)position {
if (position != nil) {
[store setObject:position forKey:SDLNamePosition];
} else {
@@ -51,7 +53,7 @@
}
}
-- (NSNumber<SDLInt> *)position {
+- (nullable NSNumber<SDLInt> *)position {
return [store objectForKey:SDLNamePosition];
}
@@ -68,3 +70,5 @@
}
@end
+
+NS_ASSUME_NONNULL_END