remove two dictionary subscripts

This commit is contained in:
Mitchell Livingston 2013-01-26 19:46:42 +00:00
parent 26dba009db
commit 65b51cb4c7
1 changed files with 2 additions and 2 deletions

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