From 65b51cb4c792314566bbbfad0af001971d561402 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Sat, 26 Jan 2013 19:46:42 +0000 Subject: [PATCH] remove two dictionary subscripts --- macosx/Torrent.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/macosx/Torrent.m b/macosx/Torrent.m index 392bd1c7a..ba63d32af 100644 --- a/macosx/Torrent.m +++ b/macosx/Torrent.m @@ -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]; -- 2.40.0