Skip to content
This repository was archived by the owner on May 3, 2021. It is now read-only.

Commit 9824a01

Browse files
committed
DEVELOP: Cleanup
1 parent 7615c40 commit 9824a01

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

DFImageManager/Source/Core/Utilities/DFCompositeImageTask.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ typedef void (^DFCompositeImageTaskCompletionHandler)(DFCompositeImageTask *__no
5050
@param imageHandler The image handler gets called each time the image is successfully fetched, but it doesn't get called for obsolete tasks.
5151
@param completionHandler Completion handler that is executed after there are no remaining image tasks that are not either completed or cancelled.
5252
*/
53-
+ (nullable DFCompositeImageTask *)compositeImageTaskWithRequests:(nonnull NSArray *)requests imageHandler:(nullable DFCompositeImageTaskImageHandler)imageHandler completionHandler:(nullable DFCompositeImageTaskCompletionHandler)completionHandler;
53+
+ (nullable instancetype)compositeImageTaskWithRequests:(nonnull NSArray *)requests imageHandler:(nullable DFCompositeImageTaskImageHandler)imageHandler completionHandler:(nullable DFCompositeImageTaskCompletionHandler)completionHandler;
5454

5555
/*! Image handler. The image handler gets called each time the image is successfully fetched, but it doesn't get called for obsolete tasks.
5656
*/

DFImageManager/Source/Core/Utilities/DFCompositeImageTask.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ + (nullable DFCompositeImageTask *)compositeImageTaskWithRequests:(nonnull NSArr
5151
[tasks addObject:task];
5252
}
5353
}
54-
return tasks.count ? [[DFCompositeImageTask alloc] initWithImageTasks:tasks imageHandler:imageHandler completionHandler:completionHandler] : nil;
54+
return tasks.count ? [[[self class] alloc] initWithImageTasks:tasks imageHandler:imageHandler completionHandler:completionHandler] : nil;
5555
}
5656

5757
- (void)resume {

DFImageManager/Source/Core/Utilities/DFNetworkReachability.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ + (nonnull instancetype)_reachabilityForInternetConnection {
8484

8585
+ (nonnull instancetype)_reachabilityWithAddress:(const struct sockaddr_in *)hostAddress; {
8686
SCNetworkReachabilityRef reachabilityRef = SCNetworkReachabilityCreateWithAddress(kCFAllocatorDefault, (const struct sockaddr *)hostAddress);
87-
return [[DFNetworkReachability alloc] initWithReachability:reachabilityRef];
87+
return [[[self class] alloc] initWithReachability:reachabilityRef];
8888
}
8989

9090
- (void)_determineCurrentReachabilityFlags {

DFImageManager/Source/NSURLSession/DFURLImageFetcher.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ extern NSString *const DFURLRequestCachePolicyKey;
8282
/*! A set containing all the supported URL schemes. The default set contains "http", "https", "ftp", "file" and "data" schemes.
8383
@note The property can be changed in case there are any custom protocols supported by NSURLSession.
8484
*/
85-
@property (nonatomic) NSSet *supportedSchemes;
85+
@property (nonatomic, copy) NSSet *supportedSchemes;
8686

8787
/*! The delegate of the receiver.
8888
*/

0 commit comments

Comments
 (0)