summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLFunctionID.m
diff options
context:
space:
mode:
Diffstat (limited to 'SmartDeviceLink/SDLFunctionID.m')
-rw-r--r--SmartDeviceLink/SDLFunctionID.m8
1 files changed, 6 insertions, 2 deletions
diff --git a/SmartDeviceLink/SDLFunctionID.m b/SmartDeviceLink/SDLFunctionID.m
index 18caf940e..17c6ba822 100644
--- a/SmartDeviceLink/SDLFunctionID.m
+++ b/SmartDeviceLink/SDLFunctionID.m
@@ -4,6 +4,8 @@
#import "SDLFunctionID.h"
+NS_ASSUME_NONNULL_BEGIN
+
@interface SDLFunctionID ()
@property (nonatomic, strong, nonnull) NSDictionary* functionIds;
@@ -93,14 +95,16 @@
return self;
}
-- (SDLName)functionNameForId:(int)functionID {
+- (nullable SDLName)functionNameForId:(int)functionID {
return self.functionIds[@(functionID)];
}
-- (NSNumber<SDLInt> *)functionIdForName:(SDLName)functionName {
+- (nullable NSNumber<SDLInt> *)functionIdForName:(SDLName)functionName {
return [[self.functionIds allKeysForObject:functionName] firstObject];
}
@end
+
+NS_ASSUME_NONNULL_END