Преглед изворни кода

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];