From 474a940414500fe3b24b91e5f7f09806d65418bb Mon Sep 17 00:00:00 2001 From: Jesse Collis Date: Mon, 17 Dec 2012 22:59:43 +1100 Subject: [PATCH] Fixes a handful of -Wstrict-selector-match warnings raised by Xcode 4.6DP3. As noted by @0xced, casting satisfies the compiler without changing the behaviour. --- AFNetworking/AFJSONRequestOperation.m | 2 +- AFNetworking/AFPropertyListRequestOperation.m | 2 +- AFNetworking/AFURLConnectionOperation.m | 2 +- AFNetworking/AFXMLRequestOperation.m | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/AFNetworking/AFJSONRequestOperation.m b/AFNetworking/AFJSONRequestOperation.m index 5401cbf..459b1d8 100644 --- a/AFNetworking/AFJSONRequestOperation.m +++ b/AFNetworking/AFJSONRequestOperation.m @@ -45,7 +45,7 @@ static dispatch_queue_t json_request_operation_processing_queue() { success:(void (^)(NSURLRequest *request, NSHTTPURLResponse *response, id JSON))success failure:(void (^)(NSURLRequest *request, NSHTTPURLResponse *response, NSError *error, id JSON))failure { - AFJSONRequestOperation *requestOperation = [[self alloc] initWithRequest:urlRequest]; + AFJSONRequestOperation *requestOperation = [(AFJSONRequestOperation *)[self alloc] initWithRequest:urlRequest]; [requestOperation setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id responseObject) { if (success) { success(operation.request, operation.response, responseObject); diff --git a/AFNetworking/AFPropertyListRequestOperation.m b/AFNetworking/AFPropertyListRequestOperation.m index 21961d0..6885def 100644 --- a/AFNetworking/AFPropertyListRequestOperation.m +++ b/AFNetworking/AFPropertyListRequestOperation.m @@ -47,7 +47,7 @@ static dispatch_queue_t property_list_request_operation_processing_queue() { success:(void (^)(NSURLRequest *request, NSHTTPURLResponse *response, id propertyList))success failure:(void (^)(NSURLRequest *request, NSHTTPURLResponse *response, NSError *error, id propertyList))failure { - AFPropertyListRequestOperation *requestOperation = [[self alloc] initWithRequest:request]; + AFPropertyListRequestOperation *requestOperation = [(AFPropertyListRequestOperation *)[self alloc] initWithRequest:request]; [requestOperation setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id responseObject) { if (success) { success(operation.request, operation.response, responseObject); diff --git a/AFNetworking/AFURLConnectionOperation.m b/AFNetworking/AFURLConnectionOperation.m index 78a6226..059430a 100644 --- a/AFNetworking/AFURLConnectionOperation.m +++ b/AFNetworking/AFURLConnectionOperation.m @@ -652,7 +652,7 @@ didReceiveResponse:(NSURLResponse *)response #pragma mark - NSCopying - (id)copyWithZone:(NSZone *)zone { - AFURLConnectionOperation *operation = [[[self class] allocWithZone:zone] initWithRequest:self.request]; + AFURLConnectionOperation *operation = [(AFURLConnectionOperation *)[[self class] allocWithZone:zone] initWithRequest:self.request]; operation.uploadProgress = self.uploadProgress; operation.downloadProgress = self.downloadProgress; diff --git a/AFNetworking/AFXMLRequestOperation.m b/AFNetworking/AFXMLRequestOperation.m index d8de09a..2157eeb 100644 --- a/AFNetworking/AFXMLRequestOperation.m +++ b/AFNetworking/AFXMLRequestOperation.m @@ -52,7 +52,7 @@ static dispatch_queue_t xml_request_operation_processing_queue() { success:(void (^)(NSURLRequest *request, NSHTTPURLResponse *response, NSXMLParser *XMLParser))success failure:(void (^)(NSURLRequest *request, NSHTTPURLResponse *response, NSError *error, NSXMLParser *XMLParser))failure { - AFXMLRequestOperation *requestOperation = [[self alloc] initWithRequest:urlRequest]; + AFXMLRequestOperation *requestOperation = [(AFXMLRequestOperation *)[self alloc] initWithRequest:urlRequest]; [requestOperation setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id responseObject) { if (success) { success(operation.request, operation.response, responseObject);