浏览代码

box integration: cosmetics

Felix Paul Kühne 10 年之前
父节点
当前提交
79c0d94cdc
共有 3 个文件被更改,包括 6 次插入5 次删除
  1. 4 3
      Sources/VLCBoxController.m
  2. 1 1
      Sources/VLCBoxTableViewController.h
  3. 1 1
      Sources/VLCBoxTableViewController.m

+ 4 - 3
Sources/VLCBoxController.m

@@ -89,7 +89,7 @@
     alert = [[UIAlertView alloc] initWithTitle: title
                                        message: message
                                       delegate: nil
-                             cancelButtonTitle: @"OK"
+                             cancelButtonTitle: NSLocalizedString(@"BUTTON_OK", nil)
                              otherButtonTitles: nil];
     [alert show];
 }
@@ -186,7 +186,7 @@
     return NO;
 }
 
-//just pick out Directories and suported formats.
+//just pick out Directories and supported formats.
 //if the resulting list contains less than 10 items try to get more
 
 - (void)_listOfGoodFilesAndFolders
@@ -194,7 +194,8 @@
     NSMutableArray *listOfGoodFilesAndFolders = [NSMutableArray new];
     _maxOffset = _fileList.totalCount.intValue;
     _offset += _fileList.numberOfEntries;
-    for (int i = 0; i < _fileList.numberOfEntries; i++)
+    NSUInteger numberOfEntries = _fileList.numberOfEntries;
+    for (int i = 0; i < numberOfEntries; i++)
     {
         BoxModel *boxFile = [_fileList modelAtIndex:i];
         BOOL isDirectory = [boxFile.type isEqualToString:BoxAPIItemTypeFolder];

+ 1 - 1
Sources/VLCBoxTableViewController.h

@@ -2,7 +2,7 @@
  * VLCBoxTableViewController.h
  * VLC for iOS
  *****************************************************************************
- * Copyright (c) 2013 VideoLAN. All rights reserved.
+ * Copyright (c) 2014 VideoLAN. All rights reserved.
  * $Id$
  *
  * Authors: Carola Nitz <nitz.carola # googlemail.com>

+ 1 - 1
Sources/VLCBoxTableViewController.m

@@ -251,7 +251,7 @@
     _selectedFile = nil;
 }
 
-#pragma mark - google drive controller delegate
+#pragma mark - box controller delegate
 
 - (void)mediaListUpdated
 {