summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLDeleteSubMenu.m
diff options
context:
space:
mode:
Diffstat (limited to 'SmartDeviceLink/SDLDeleteSubMenu.m')
-rw-r--r--SmartDeviceLink/SDLDeleteSubMenu.m9
1 files changed, 3 insertions, 6 deletions
diff --git a/SmartDeviceLink/SDLDeleteSubMenu.m b/SmartDeviceLink/SDLDeleteSubMenu.m
index 0e8a4427e..b03372c7d 100644
--- a/SmartDeviceLink/SDLDeleteSubMenu.m
+++ b/SmartDeviceLink/SDLDeleteSubMenu.m
@@ -4,6 +4,7 @@
#import "SDLDeleteSubMenu.h"
+#import "NSMutableDictionary+Store.h"
#import "SDLNames.h"
NS_ASSUME_NONNULL_BEGIN
@@ -28,15 +29,11 @@ NS_ASSUME_NONNULL_BEGIN
}
- (void)setMenuID:(NSNumber<SDLInt> *)menuID {
- if (menuID != nil) {
- [parameters setObject:menuID forKey:SDLNameMenuId];
- } else {
- [parameters removeObjectForKey:SDLNameMenuId];
- }
+ [parameters sdl_setObject:menuID forName:SDLNameMenuId];
}
- (NSNumber<SDLInt> *)menuID {
- return [parameters objectForKey:SDLNameMenuId];
+ return [parameters sdl_objectForName:SDLNameMenuId];
}
@end