summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicoleYarroch <nicole@livio.io>2018-05-09 10:48:15 -0400
committerNicoleYarroch <nicole@livio.io>2018-05-09 10:48:15 -0400
commit614f2ac4949650d60d9ce799fea981a922b996b6 (patch)
tree9c1101e31f9e443ce2597bf28da3cee95442aa7c
parent7ff35a2189c37c3481de695653c2f663caf2d26b (diff)
downloadsdl_ios-614f2ac4949650d60d9ce799fea981a922b996b6.tar.gz
Reverted `DeleteCommand` fix
Signed-off-by: NicoleYarroch <nicole@livio.io>
-rw-r--r--SmartDeviceLink/SDLVoiceCommandManager.m3
1 files changed, 1 insertions, 2 deletions
diff --git a/SmartDeviceLink/SDLVoiceCommandManager.m b/SmartDeviceLink/SDLVoiceCommandManager.m
index d25ebc266..d1883d648 100644
--- a/SmartDeviceLink/SDLVoiceCommandManager.m
+++ b/SmartDeviceLink/SDLVoiceCommandManager.m
@@ -201,8 +201,7 @@ UInt32 const VoiceCommandIdMin = 1900000000;
- (NSArray<SDLDeleteCommand *> *)sdl_deleteCommandsForVoiceCommands:(NSArray<SDLVoiceCommand *> *)voiceCommands {
NSMutableArray<SDLDeleteCommand *> *mutableDeletes = [NSMutableArray array];
for (SDLVoiceCommand *command in voiceCommands) {
- SDLDeleteCommand *delete = [[SDLDeleteCommand alloc] init];
- delete.cmdID = @(command.commandId);
+ SDLDeleteCommand *delete = [[SDLDeleteCommand alloc] initWithId:command.commandId];
[mutableDeletes addObject:delete];
}