瀏覽代碼

VLCAlertViewController: Using classes minor cosmetic improvement

Soomin Lee 6 年之前
父節點
當前提交
beda9be6e0

+ 2 - 2
Sources/VLCBoxTableViewController.m

@@ -234,11 +234,11 @@
         /* 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)
                                                                                      style: UIAlertActionStyleCancel
-                                                                                    action: ^(UIAlertAction* action){
+                                                                                    action: ^(UIAlertAction *action) {
                                                                                         self->_selectedFile = nil;
                                                                                     }],
                                                      [[VLCAlertButton alloc] initWithTitle:NSLocalizedString(@"BUTTON_DOWNLOAD", nil)
-                                                                                    action:^(UIAlertAction* action){
+                                                                                    action:^(UIAlertAction *action) {
                                                                                         [self->_boxController downloadFileToDocumentFolder:self->_selectedFile];
                                                                                         self->_selectedFile = nil;
                                                                                     }]];

+ 1 - 1
Sources/VLCBugreporter.m

@@ -39,7 +39,7 @@
                                                                                  style: UIAlertActionStyleCancel
                                                                                 action:nil],
                                                  [[VLCAlertButton alloc] initWithTitle:NSLocalizedString(@"BUG_REPORT_BUTTON", nil)
-                                                                                action: ^(UIAlertAction* action) {
+                                                                                action: ^(UIAlertAction *action) {
                                                                                     NSURL *url = [NSURL URLWithString:@"https://trac.videolan.org/vlc/newticket"];
                                                                                     [[UIApplication sharedApplication] openURL:url];
                                                                                 }]

+ 2 - 2
Sources/VLCDropboxTableViewController.m

@@ -167,11 +167,11 @@
         /* 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)
                                                                                      style: UIAlertActionStyleCancel
-                                                                                    action: ^(UIAlertAction* action){
+                                                                                    action: ^(UIAlertAction *action) {
                                                                                         self->_selectedFile = nil;
                                                                                     }],
                                                      [[VLCAlertButton alloc] initWithTitle: NSLocalizedString(@"BUTTON_DOWNLOAD", nil)
-                                                                                    action: ^(UIAlertAction* action){
+                                                                                    action: ^(UIAlertAction *action) {
                                                                                         [self->_dropboxController downloadFileToDocumentFolder:self->_selectedFile];
                                                                                         self->_selectedFile = nil;
                                                                                     }]

+ 2 - 2
Sources/VLCGoogleDriveTableViewController.m

@@ -130,11 +130,11 @@
         /* 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)
                                                                                      style: UIAlertActionStyleCancel
-                                                                                  action: ^(UIAlertAction* action){
+                                                                                  action: ^(UIAlertAction *action) {
                                                                                       self->_selectedFile = nil;
                                                                                   }],
                                                      [[VLCAlertButton alloc] initWithTitle: NSLocalizedString(@"BUTTON_DOWNLOAD", nil)
-                                                                                  action: ^(UIAlertAction* action){
+                                                                                  action: ^(UIAlertAction *action) {
                                                                                       [self->_googleDriveController downloadFileToDocumentFolder:self->_selectedFile];
                                                                                       self->_selectedFile = nil;
                                                                                   }]

+ 3 - 3
Sources/VLCOneDriveTableViewController.m

@@ -200,11 +200,11 @@
         /* 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)
                                                                                      style: UIAlertActionStyleCancel
-                                                                                    action: ^(UIAlertAction* action){
+                                                                                    action: ^(UIAlertAction *action) {
                                                                                         self->_selectedFile = nil;
                                                                                     }],
                                                      [[VLCAlertButton alloc] initWithTitle: NSLocalizedString(@"BUTTON_DOWNLOAD", nil)
-                                                                                    action: ^(UIAlertAction* action){
+                                                                                    action: ^(UIAlertAction *action) {
                                                                                         [self->_oneDriveController downloadObject:self->_selectedFile];
                                                                                         self->_selectedFile = nil;
                                                                                     }]];
@@ -218,7 +218,7 @@
                                            viewController:self
                                             buttonsAction:@[[[VLCAlertButton alloc] initWithTitle: NSLocalizedString(@"BUTTON_OK", nil)
                                                                                             style: UIAlertActionStyleDefault
-                                                                                           action: ^(UIAlertAction* action){
+                                                                                           action: ^(UIAlertAction *action) {
                                                                                                self->_selectedFile = nil;
                                                                                            }]]];
     }

+ 1 - 1
Sources/VLCPlaybackController.m

@@ -1192,7 +1192,7 @@ typedef NS_ENUM(NSUInteger, VLCAspectRatio) {
                                                                                              style: UIAlertActionStyleCancel
                                                                                             action: nil],
                                                              [[VLCAlertButton alloc] initWithTitle: NSLocalizedString(@"BUTTON_CONTINUE", nil)
-                                                                                            action: ^(UIAlertAction* action){
+                                                                                            action: ^(UIAlertAction *action) {
                                                                                                 [self setPlaybackPosition:lastPosition];
                                                                                             }]
                                                              ];