summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLShow.m
diff options
context:
space:
mode:
authorMuller, Alexander (A.) <amulle19@ford.com>2016-09-22 16:25:39 -0700
committerMuller, Alexander (A.) <amulle19@ford.com>2016-09-22 16:25:39 -0700
commitbd886c5d29cc2b907c2b42d2833d8e1f879535e5 (patch)
tree7b6d016983c43211749ac0da2185d7ba0e6947fb /SmartDeviceLink/SDLShow.m
parente6e84cc8c23609ab286c64a2c6a3037313f29908 (diff)
downloadsdl_ios-bd886c5d29cc2b907c2b42d2833d8e1f879535e5.tar.gz
Migrated initWithDictionary to take non-mutable dictionary as parameter.
Diffstat (limited to 'SmartDeviceLink/SDLShow.m')
-rw-r--r--SmartDeviceLink/SDLShow.m12
1 files changed, 3 insertions, 9 deletions
diff --git a/SmartDeviceLink/SDLShow.m b/SmartDeviceLink/SDLShow.m
index 933167159..cd0518706 100644
--- a/SmartDeviceLink/SDLShow.m
+++ b/SmartDeviceLink/SDLShow.m
@@ -18,12 +18,6 @@
return self;
}
-- (instancetype)initWithDictionary:(NSMutableDictionary *)dict {
- if (self = [super initWithDictionary:dict]) {
- }
- return self;
-}
-
- (void)setMainField1:(NSString *)mainField1 {
if (mainField1 != nil) {
[parameters setObject:mainField1 forKey:NAMES_mainField1];
@@ -138,7 +132,7 @@
if (obj == nil || [obj isKindOfClass:SDLImage.class]) {
return (SDLImage *)obj;
} else {
- return [[SDLImage alloc] initWithDictionary:(NSMutableDictionary *)obj];
+ return [[SDLImage alloc] initWithDictionary:(NSDictionary *)obj];
}
}
@@ -155,7 +149,7 @@
if (obj == nil || [obj isKindOfClass:SDLImage.class]) {
return (SDLImage *)obj;
} else {
- return [[SDLImage alloc] initWithDictionary:(NSMutableDictionary *)obj];
+ return [[SDLImage alloc] initWithDictionary:(NSDictionary *)obj];
}
}
@@ -174,7 +168,7 @@
} else {
NSMutableArray *newList = [NSMutableArray arrayWithCapacity:[array count]];
for (NSDictionary *dict in array) {
- [newList addObject:[[SDLSoftButton alloc] initWithDictionary:(NSMutableDictionary *)dict]];
+ [newList addObject:[[SDLSoftButton alloc] initWithDictionary:(NSDictionary *)dict]];
}
return newList;
}