diff options
author | Muller, Alexander (A.) <amulle19@ford.com> | 2016-10-17 12:53:27 -0700 |
---|---|---|
committer | Muller, Alexander (A.) <amulle19@ford.com> | 2016-10-17 12:53:27 -0700 |
commit | 9e2a273e0730526dc195a1a6dd7d5ccfb00ab55a (patch) | |
tree | 30a043f3d6e4f62e7ee4b4f741a3c0b34e3d5157 /SmartDeviceLink/SDLCreateInteractionChoiceSet.m | |
parent | f396ff7f69ef1dc29f6703d174410234ba05857c (diff) | |
download | sdl_ios-9e2a273e0730526dc195a1a6dd7d5ccfb00ab55a.tar.gz |
Added missing generics
Diffstat (limited to 'SmartDeviceLink/SDLCreateInteractionChoiceSet.m')
-rw-r--r-- | SmartDeviceLink/SDLCreateInteractionChoiceSet.m | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/SmartDeviceLink/SDLCreateInteractionChoiceSet.m b/SmartDeviceLink/SDLCreateInteractionChoiceSet.m index adb785c52..3d443d719 100644 --- a/SmartDeviceLink/SDLCreateInteractionChoiceSet.m +++ b/SmartDeviceLink/SDLCreateInteractionChoiceSet.m @@ -27,7 +27,7 @@ return [parameters objectForKey:SDLNameInteractionChoiceSetId]; } -- (void)setChoiceSet:(NSMutableArray *)choiceSet { +- (void)setChoiceSet:(NSMutableArray<SDLChoice *> *)choiceSet { if (choiceSet != nil) { [parameters setObject:choiceSet forKey:SDLNameChoiceSet]; } else { @@ -35,12 +35,12 @@ } } -- (NSMutableArray *)choiceSet { - NSMutableArray *array = [parameters objectForKey:SDLNameChoiceSet]; +- (NSMutableArray<SDLChoice *> *)choiceSet { + NSMutableArray<SDLChoice *> *array = [parameters objectForKey:SDLNameChoiceSet]; if ([array count] < 1 || [[array objectAtIndex:0] isKindOfClass:SDLChoice.class]) { return array; } else { - NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]]; + NSMutableArray<SDLChoice *> *newList = [NSMutableArray arrayWithCapacity:[array count]]; for (NSDictionary<NSString *, id> *dict in array) { [newList addObject:[[SDLChoice alloc] initWithDictionary:(NSDictionary *)dict]]; } |