Skip to content

Commit cb74741

Browse files
committed
1 parent 293a41c commit cb74741

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

JSONModel/JSONModel/JSONModel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ lastPathComponent], __LINE__, [NSString stringWithFormat:(s), ##__VA_ARGS__] )
8686
* A protocol describing an abstract JSONModel class
8787
* JSONModel conforms to this protocol, so it can use itself abstractly
8888
*/
89-
@protocol AbstractJSONModelProtocol <NSObject, NSCopying, NSCoding>
89+
@protocol AbstractJSONModelProtocol <NSCopying, NSCoding>
9090

9191
@required
9292
/**

JSONModel/JSONModel/JSONModel.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ -(id)__reverseTransform:(id)value forProperty:(JSONModelClassProperty*)property
805805
//check if should export list of dictionaries
806806
if (property.type == [NSArray class] || property.type == [NSMutableArray class]) {
807807
NSMutableArray* tempArray = [NSMutableArray arrayWithCapacity: [(NSArray*)value count] ];
808-
for (id<AbstractJSONModelProtocol> model in (NSArray*)value) {
808+
for (NSObject<AbstractJSONModelProtocol>* model in (NSArray*)value) {
809809
if ([model respondsToSelector:@selector(toDictionary)]) {
810810
[tempArray addObject: [model toDictionary]];
811811
} else
@@ -885,7 +885,7 @@ -(BOOL)__customGetValue:(id<NSObject>*)value forProperty:(JSONModelClassProperty
885885
//call the custom getter
886886
#pragma clang diagnostic push
887887
#pragma clang diagnostic ignored "-Warc-performSelector-leaks"
888-
*value = [self performSelector:property.customGetter withObject:nil];
888+
*value = [self performSelector:property.customGetter];
889889
#pragma clang diagnostic pop
890890
return YES;
891891
}

0 commit comments

Comments
 (0)