ソースを参照

Use explicit nil initialization for consistency within the project.

Ryan Olson 12 年 前
コミット
e968c3bd1a
共有1 個のファイルを変更した4 個の追加4 個の削除を含む
  1. 4 4
      Classes/Global State Explorers/FLEXFileBrowserTableViewController.m

+ 4 - 4
Classes/Global State Explorers/FLEXFileBrowserTableViewController.m

@@ -126,8 +126,8 @@
 
 - (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section
 {
-    NSNumber *currentSize;
-    NSArray *currentPaths;
+    NSNumber *currentSize = nil;
+    NSArray *currentPaths = nil;
     
     if (tableView == self.tableView) {
         currentSize = self.recursiveSize;
@@ -197,8 +197,8 @@
 
 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
 {
-    NSString *subpath;
-    NSString *fullPath;
+    NSString *subpath = nil;
+    NSString *fullPath = nil;
     
     if (tableView == self.tableView) {
         subpath = [self.childPaths objectAtIndex:indexPath.row];