소스 검색

OneDrive: micro-optimization

Felix Paul Kühne 10 년 전
부모
커밋
7cb22d721a
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 4 3
      Sources/VLCCloudStorageTableViewCell.m

+ 4 - 3
Sources/VLCCloudStorageTableViewCell.m

@@ -173,9 +173,10 @@
                 self.thumbnailView.image = [UIImage imageNamed:@"audio"];
             else if (self.oneDriveFile.isVideo) {
                 self.thumbnailView.image = [UIImage imageNamed:@"movie"];
-                if (_oneDriveFile.thumbnailURL != nil) {
-                    if (_oneDriveFile.thumbnailURL.length > 0) {
-                        _iconURL = [NSURL URLWithString:_oneDriveFile.thumbnailURL];
+                NSString *thumbnailURL = _oneDriveFile.thumbnailURL;
+                if (thumbnailURL != NULL) {
+                    if (thumbnailURL.length > 0) {
+                        _iconURL = [NSURL URLWithString:thumbnailURL];
                         [self performSelectorInBackground:@selector(_updateIconFromURL) withObject:@""];
                     }
                 }