]> granicus.if.org Git - transmission/commitdiff
remove another subscript usage
authorMitchell Livingston <livings124@transmissionbt.com>
Sat, 26 Jan 2013 19:55:26 +0000 (19:55 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Sat, 26 Jan 2013 19:55:26 +0000 (19:55 +0000)
macosx/FileListNode.m

index 61a14ce3fe999081587fe1eebc51d428d83b8afb..295942013bb323dc0e3a44287e69579f9b14cd1c 100644 (file)
     {
         lookupPathComponents = [lookupPathComponents arrayByAddingObject: oldName];
         const BOOL allSame = NSNotFound == [lookupPathComponents indexOfObjectWithOptions: NSEnumerationConcurrent passingTest: ^BOOL(NSString * name, NSUInteger idx, BOOL * stop) {
-            return ![name isEqualToString: thesePathComponents[idx]];
+            return ![name isEqualToString: [thesePathComponents objectAtIndex: idx]];
         }];
         
         if (allSame)