summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2016-05-09 15:05:07 -0400
committerJoel Fischer <joeljfischer@gmail.com>2016-05-09 15:05:07 -0400
commit9c488eed9a2cf8d7cbe53a4f17005f97f3841d3a (patch)
tree7c8c76c7e2624fe0b01e57ee9b37745e06b5b81e
parenta9a1587ce8e2edce8b4f6c4d37a72e02b1955e82 (diff)
downloadsdl_ios-9c488eed9a2cf8d7cbe53a4f17005f97f3841d3a.tar.gz
SDLRPCStructs print correctly
* Fixes #355
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCStruct.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCStruct.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCStruct.m
index 86c352f1d..a359fe7a3 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCStruct.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCStruct.m
@@ -38,7 +38,7 @@
[ret setObject:[self serializeDictionary:(NSDictionary *)value version:version] forKey:key];
} else if ([value isKindOfClass:NSArray.class]) {
NSArray *arrayVal = (NSArray *)value;
-
+
if (arrayVal.count > 0 && ([[arrayVal objectAtIndex:0] isKindOfClass:SDLRPCStruct.class])) {
NSMutableArray *serializedList = [NSMutableArray arrayWithCapacity:arrayVal.count];
for (SDLRPCStruct *serializeable in arrayVal) {
@@ -79,7 +79,7 @@
}
- (NSString *)description {
- return [NSString stringWithFormat:@"RPC Struct (%@) %@", [self class], [store description]];
+ return [store description];
}
- (void)dealloc {