Authored by Jean-Charles SORIN

Rename SDWebImageAvoidAutoImageFill option to SDWebImageAvoidAutoSetImage

@@ -88,7 +88,7 @@ typedef NS_OPTIONS(NSUInteger, SDWebImageOptions) { @@ -88,7 +88,7 @@ typedef NS_OPTIONS(NSUInteger, SDWebImageOptions) {
88 * have the hand before setting the image (apply a filter or add it with cross-fade animation for instance) 88 * have the hand before setting the image (apply a filter or add it with cross-fade animation for instance)
89 * Use this flag if you want to manually set the image in the completion when success 89 * Use this flag if you want to manually set the image in the completion when success
90 */ 90 */
91 - SDWebImageAvoidAutoImageFill = 1 << 11 91 + SDWebImageAvoidAutoSetImage = 1 << 11
92 }; 92 };
93 93
94 typedef void(^SDWebImageCompletionBlock)(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL); 94 typedef void(^SDWebImageCompletionBlock)(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL);
@@ -54,7 +54,7 @@ static char imageURLKey; @@ -54,7 +54,7 @@ static char imageURLKey;
54 if (!wself) return; 54 if (!wself) return;
55 dispatch_main_sync_safe(^{ 55 dispatch_main_sync_safe(^{
56 if (!wself) return; 56 if (!wself) return;
57 - if (image && (options & SDWebImageAvoidAutoImageFill) && completedBlock) 57 + if (image && (options & SDWebImageAvoidAutoSetImage) && completedBlock)
58 { 58 {
59 completedBlock(image, error, cacheType, url); 59 completedBlock(image, error, cacheType, url);
60 return; 60 return;