mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-01 22:42:51 +08:00
Fix static analyzer issues
This commit is contained in:
@@ -103,8 +103,7 @@ static dispatch_queue_t defaultMappingQueue = nil;
|
||||
- (id)initWithBaseURL:(RKURL *)baseURL {
|
||||
self = [self init];
|
||||
if (self) {
|
||||
self.client = [[RKClient alloc] initWithBaseURL:baseURL];
|
||||
[self.client release];
|
||||
self.client = [RKClient clientWithBaseURL:baseURL];
|
||||
self.acceptMIMEType = RKMIMETypeJSON;
|
||||
}
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
}
|
||||
|
||||
+ (RKObjectMappingProviderContextEntry *)contextEntryWithMapping:(RKObjectMappingDefinition *)mapping userData:(id)userData {
|
||||
RKObjectMappingProviderContextEntry * contextEntry = [RKObjectMappingProviderContextEntry contextEntryWithMapping:mapping];
|
||||
RKObjectMappingProviderContextEntry *contextEntry = [RKObjectMappingProviderContextEntry contextEntryWithMapping:mapping];
|
||||
contextEntry.userData = userData;
|
||||
return contextEntry;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user