Browse Source

VLCAlertViewController: make implicit self explicit

Carola Nitz 7 years ago
parent
commit
276a76bc82

+ 3 - 3
Sources/VLCBoxTableViewController.m

@@ -234,12 +234,12 @@
         /* selected item is a proper file, ask the user if s/he wants to download it */
         NSArray<VLCAlertButton *> *buttonsAction = @[[[VLCAlertButton alloc] initWithTitle: NSLocalizedString(@"BUTTON_CANCEL", nil)
                                                                                   action: ^(UIAlertAction* action){
-                                                                                      _selectedFile = nil;
+                                                                                      self->_selectedFile = nil;
                                                                                   }],
                                                      [[VLCAlertButton alloc] initWithTitle:NSLocalizedString(@"BUTTON_DOWNLOAD", nil)
                                                                                   action:^(UIAlertAction* action){
-                                                                                      [_boxController downloadFileToDocumentFolder:_selectedFile];
-                                                                                      _selectedFile = nil;
+                                                                                      [self->_boxController downloadFileToDocumentFolder:self->_selectedFile];
+                                                                                      self->_selectedFile = nil;
                                                                                   }]];
         [VLCAlertViewController alertViewManagerWithTitle:NSLocalizedString(@"DROPBOX_DOWNLOAD", nil)
                                              errorMessage:[NSString stringWithFormat:NSLocalizedString(@"DROPBOX_DL_LONG", nil), _selectedFile.name, [[UIDevice currentDevice] model]]

+ 3 - 3
Sources/VLCDropboxTableViewController.m

@@ -171,12 +171,12 @@
         /* selected item is a proper file, ask the user if s/he wants to download it */
         NSArray<VLCAlertButton *> *buttonsAction = @[[[VLCAlertButton alloc] initWithTitle: NSLocalizedString(@"BUTTON_CANCEL", nil)
                                                                                   action: ^(UIAlertAction* action){
-                                                                                      _selectedFile = nil;
+                                                                                      self->_selectedFile = nil;
                                                                                   }],
                                                    [[VLCAlertButton alloc] initWithTitle: NSLocalizedString(@"BUTTON_DOWNLOAD", nil)
                                                                                 action: ^(UIAlertAction* action){
-                                                                                    [_dropboxController downloadFileToDocumentFolder:_selectedFile];
-                                                                                    _selectedFile = nil;
+                                                                                    [self->_dropboxController downloadFileToDocumentFolder:self->_selectedFile];
+                                                                                    self->_selectedFile = nil;
                                                                                 }]
                                                      ];
         [VLCAlertViewController alertViewManagerWithTitle:NSLocalizedString(@"DROPBOX_DOWNLOAD", nil)

+ 3 - 3
Sources/VLCGoogleDriveTableViewController.m

@@ -130,12 +130,12 @@
         /* selected item is a proper file, ask the user if s/he wants to download it */
         NSArray<VLCAlertButton *> *buttonsAction = @[[[VLCAlertButton alloc] initWithTitle: NSLocalizedString(@"BUTTON_CANCEL", nil)
                                                                                   action: ^(UIAlertAction* action){
-                                                                                      _selectedFile = nil;
+                                                                                      self->_selectedFile = nil;
                                                                                   }],
                                                      [[VLCAlertButton alloc] initWithTitle: NSLocalizedString(@"BUTTON_DOWNLOAD", nil)
                                                                                   action: ^(UIAlertAction* action){
-                                                                                      [_googleDriveController downloadFileToDocumentFolder:_selectedFile];
-                                                                                      _selectedFile = nil;
+                                                                                      [self->_googleDriveController downloadFileToDocumentFolder:self->_selectedFile];
+                                                                                      self->_selectedFile = nil;
                                                                                   }]
                                                      ];
         [VLCAlertViewController alertViewManagerWithTitle:NSLocalizedString(@"DROPBOX_DOWNLOAD", nil)

+ 4 - 4
Sources/VLCOneDriveTableViewController.m

@@ -200,12 +200,12 @@
         /* selected item is a proper file, ask the user if s/he wants to download it */
         NSArray<VLCAlertButton *> *buttonsAction = @[[[VLCAlertButton alloc] initWithTitle: NSLocalizedString(@"BUTTON_CANCEL", nil)
                                                                                     action: ^(UIAlertAction* action){
-                                                                                        _selectedFile = nil;
+                                                                                        self->_selectedFile = nil;
                                                                                     }],
                                                      [[VLCAlertButton alloc] initWithTitle: NSLocalizedString(@"BUTTON_DOWNLOAD", nil)
                                                                                     action: ^(UIAlertAction* action){
-                                                                                        [_oneDriveController downloadObject:_selectedFile];
-                                                                                        _selectedFile = nil;
+                                                                                        [self->_oneDriveController downloadObject:self->_selectedFile];
+                                                                                        self->_selectedFile = nil;
                                                                                     }]];
         [VLCAlertViewController alertViewManagerWithTitle:NSLocalizedString(@"DROPBOX_DOWNLOAD", nil)
                                              errorMessage:[NSString stringWithFormat:NSLocalizedString(@"DROPBOX_DL_LONG", nil), _selectedFile.name, [[UIDevice currentDevice] model]]
@@ -217,7 +217,7 @@
                                            viewController:self
                                             buttonsAction:@[[[VLCAlertButton alloc] initWithTitle: NSLocalizedString(@"BUTTON_OK", nil)
                                                                                          action: ^(UIAlertAction* action){
-                                                                                             _selectedFile = nil;
+                                                                                             self->_selectedFile = nil;
                                                                                          }]]];
     }
 }