Просмотр исходного кода

Use explicit nil initialization for consistency within the project.

Ryan Olson лет назад: 12
Родитель
Сommit
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
 - (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section
 {
 {
-    NSNumber *currentSize;
-    NSArray *currentPaths;
+    NSNumber *currentSize = nil;
+    NSArray *currentPaths = nil;
     
     
     if (tableView == self.tableView) {
     if (tableView == self.tableView) {
         currentSize = self.recursiveSize;
         currentSize = self.recursiveSize;
@@ -197,8 +197,8 @@
 
 
 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
 {
 {
-    NSString *subpath;
-    NSString *fullPath;
+    NSString *subpath = nil;
+    NSString *fullPath = nil;
     
     
     if (tableView == self.tableView) {
     if (tableView == self.tableView) {
         subpath = [self.childPaths objectAtIndex:indexPath.row];
         subpath = [self.childPaths objectAtIndex:indexPath.row];