From 06865847717893fd1bafc6da7b7a8189a625ec53 Mon Sep 17 00:00:00 2001 From: zhongwuzw Date: Sat, 16 Mar 2019 00:16:01 +0800 Subject: [PATCH] Remove shadow variable warning --- SDWebImage/SDWebImagePrefetcher.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SDWebImage/SDWebImagePrefetcher.m b/SDWebImage/SDWebImagePrefetcher.m index 56ccac1c..82cb1054 100644 --- a/SDWebImage/SDWebImagePrefetcher.m +++ b/SDWebImage/SDWebImagePrefetcher.m @@ -107,11 +107,11 @@ for (NSURL *url in token.urls) { __weak typeof(self) wself = self; SDAsyncBlockOperation *prefetchOperation = [SDAsyncBlockOperation blockOperationWithBlock:^(SDAsyncBlockOperation * _Nonnull asyncOperation) { - __strong typeof(wself) sself = wself; - if (!sself) { + __strong typeof(wself) strongSelf = wself; + if (!strongSelf) { return; } - id operation = [sself.manager loadImageWithURL:url options:sself.options context:sself.context progress:nil completed:^(UIImage * _Nullable image, NSData * _Nullable data, NSError * _Nullable error, SDImageCacheType cacheType, BOOL finished, NSURL * _Nullable imageURL) { + id operation = [strongSelf.manager loadImageWithURL:url options:strongSelf.options context:strongSelf.context progress:nil completed:^(UIImage * _Nullable image, NSData * _Nullable data, NSError * _Nullable error, SDImageCacheType cacheType, BOOL finished, NSURL * _Nullable imageURL) { __strong typeof(wself) sself = wself; if (!sself) { return;