]> granicus.if.org Git - transmission/commitdiff
remove two dictionary subscripts
authorMitchell Livingston <livings124@transmissionbt.com>
Sat, 26 Jan 2013 19:46:42 +0000 (19:46 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Sat, 26 Jan 2013 19:46:42 +0000 (19:46 +0000)
macosx/Torrent.m

index 392bd1c7aefa0c86d7c69d6e5fe3608c8bf39778..ba63d32af83a0c649040e28a891a60d25a60ceec 100644 (file)
@@ -114,7 +114,7 @@ void renameCallback(tr_torrent * torrent, const char * oldPathCharString, const
                 }
             };
             
-            NSArray * nodes = contextDict[@"Nodes"];
+            NSArray * nodes = [contextDict objectForKey: @"Nodes"];
             [nodes enumerateObjectsWithOptions: NSEnumerationConcurrent usingBlock: ^(FileListNode * node, NSUInteger idx, BOOL *stop) {
                 updateNodeAndChildrenForRename(node);
             }];
@@ -123,7 +123,7 @@ void renameCallback(tr_torrent * torrent, const char * oldPathCharString, const
             NSLog(@"Error renaming %@ to %@", oldPath, [path stringByAppendingPathComponent: newName]);
         
         typedef void (^RenameCompletionBlock)(BOOL);
-        RenameCompletionBlock completionHandler = contextDict[@"CompletionHandler"];
+        RenameCompletionBlock completionHandler = [contextDict objectForKey: @"CompletionHandler"];
         completionHandler(error == 0);
         
         [contextDict release];