diff options
author | Joel Fischer <joeljfischer@gmail.com> | 2016-09-30 10:31:13 -0400 |
---|---|---|
committer | Joel Fischer <joeljfischer@gmail.com> | 2016-09-30 10:31:13 -0400 |
commit | 96ebe581b0f8168cb0894096ef6b2274993f790a (patch) | |
tree | 6b2981871a6d6589d01813eb8c18dc1c2f74822c | |
parent | 5f956e3a5240ee18e0b91681e2f7bb962a0c23c5 (diff) | |
download | sdl_ios-feature/issue_151_struct_dictionary_init.tar.gz |
Change SDLRPCStruct private method to be a class methodfeature/issue_151_struct_dictionary_init
-rw-r--r-- | SmartDeviceLink/SDLRPCStruct.m | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/SmartDeviceLink/SDLRPCStruct.m b/SmartDeviceLink/SDLRPCStruct.m index aab0be7f3..411df6231 100644 --- a/SmartDeviceLink/SDLRPCStruct.m +++ b/SmartDeviceLink/SDLRPCStruct.m @@ -33,12 +33,12 @@ NSMutableDictionary *function = [store objectForKey:messageType]; if ([function isKindOfClass:NSMutableDictionary.class]) { NSMutableDictionary *parameters = [function objectForKey:SDLNameParameters]; - return [self sdl_serializeDictionary:parameters version:version]; + return [self.class sdl_serializeDictionary:parameters version:version]; } else { - return [self sdl_serializeDictionary:store version:version]; + return [self.class sdl_serializeDictionary:store version:version]; } } else { - return [self sdl_serializeDictionary:store version:version]; + return [self.class sdl_serializeDictionary:store version:version]; } } @@ -46,7 +46,7 @@ return [store description]; } -- (NSDictionary *)sdl_serializeDictionary:(NSDictionary *)dict version:(Byte)version { ++ (NSDictionary *)sdl_serializeDictionary:(NSDictionary *)dict version:(Byte)version { NSMutableDictionary *ret = [NSMutableDictionary dictionaryWithCapacity:dict.count]; for (NSString *key in [dict keyEnumerator]) { NSObject *value = [dict objectForKey:key]; |