[Issue #633] Manually casting scalar types in initWithCoder for AFURLConnectionOperation and AFHTTPClient
This commit is contained in:
parent
ff8e70a49c
commit
247863cfc2
2 changed files with 3 additions and 3 deletions
|
|
@ -657,8 +657,8 @@ static void AFNetworkReachabilityReleaseCallback(const void *info) {}
|
|||
return nil;
|
||||
}
|
||||
|
||||
self.stringEncoding = [aDecoder decodeIntegerForKey:@"stringEncoding"];
|
||||
self.parameterEncoding = [aDecoder decodeIntegerForKey:@"parameterEncoding"];
|
||||
self.stringEncoding = (NSStringEncoding)[aDecoder decodeIntegerForKey:@"stringEncoding"];
|
||||
self.parameterEncoding = (AFHTTPClientParameterEncoding)[aDecoder decodeIntegerForKey:@"parameterEncoding"];
|
||||
self.registeredHTTPOperationClassNames = [aDecoder decodeObjectForKey:@"registeredHTTPOperationClassNames"];
|
||||
self.defaultHeaders = [aDecoder decodeObjectForKey:@"defaultHeaders"];
|
||||
|
||||
|
|
|
|||
|
|
@ -603,7 +603,7 @@ didReceiveResponse:(NSURLResponse *)response
|
|||
return nil;
|
||||
}
|
||||
|
||||
self.state = [aDecoder decodeIntegerForKey:@"state"];
|
||||
self.state = (AFOperationState)[aDecoder decodeIntegerForKey:@"state"];
|
||||
self.cancelled = [aDecoder decodeBoolForKey:@"isCancelled"];
|
||||
self.response = [aDecoder decodeObjectForKey:@"response"];
|
||||
self.error = [aDecoder decodeObjectForKey:@"error"];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue