diff options
author | Joel Fischer <joeljfischer@gmail.com> | 2020-07-27 16:25:26 -0400 |
---|---|---|
committer | Joel Fischer <joeljfischer@gmail.com> | 2020-07-27 16:25:26 -0400 |
commit | 5cf696df5cd0b2e59f21bad27afaba19e370a80c (patch) | |
tree | 1594cce72615b4351451d74122c69bf164a08c26 | |
parent | ec834b0b323a27166343bb3ca8c42066929fd47e (diff) | |
download | sdl_ios-5cf696df5cd0b2e59f21bad27afaba19e370a80c.tar.gz |
Fix deprecations
-rw-r--r-- | SmartDeviceLink/SDLMenuManager.m | 2 | ||||
-rw-r--r-- | SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLAddSubMenuSpec.m | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/SmartDeviceLink/SDLMenuManager.m b/SmartDeviceLink/SDLMenuManager.m index 4d2d0737a..8cef8caef 100644 --- a/SmartDeviceLink/SDLMenuManager.m +++ b/SmartDeviceLink/SDLMenuManager.m @@ -665,7 +665,7 @@ UInt32 const MenuCellIdMin = 1; submenuLayout = self.menuConfiguration.defaultSubmenuLayout; } - return [[SDLAddSubMenu alloc] initWithId:cell.cellId menuName:cell.title menuLayout:submenuLayout menuIcon:icon position:(UInt8)position]; + return [[SDLAddSubMenu alloc] initWithMenuID:cell.cellId menuName:cell.title position:@(position) menuIcon:icon menuLayout:submenuLayout parentID:nil]; } #pragma mark - Calling handlers diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLAddSubMenuSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLAddSubMenuSpec.m index dcc16ef28..ca0ab6f28 100644 --- a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLAddSubMenuSpec.m +++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLAddSubMenuSpec.m @@ -77,7 +77,10 @@ describe(@"Getter/Setter Tests", ^ { }); it(@"should correctly initialize with initWithId:menuName:menuLayout:menuIcon:position:", ^{ + #pragma clang diagnostic push + #pragma clang diagnostic ignored "-Wdeprecated-declarations" SDLAddSubMenu *testRequest = [[SDLAddSubMenu alloc] initWithId:menuId menuName:menuName menuLayout:testLayout menuIcon:image position:position]; + #pragma clang diagnostic pop expect(testRequest.menuID).to(equal(@(menuId))); expect(testRequest.position).to(equal(@(position))); |