mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +00:00
don't use the convenient accessor functionality in file parsing
This commit is contained in:
parent
6fe0774147
commit
97385bcdee
1 changed files with 3 additions and 3 deletions
|
@ -1680,8 +1680,8 @@ int trashDataFile(const char * filename)
|
|||
NSArray * pathComponents = [fullPath pathComponents];
|
||||
NSAssert1([pathComponents count] >= 2, @"Not enough components in path %@", fullPath);
|
||||
|
||||
NSString * path = pathComponents[0];
|
||||
NSString * name = pathComponents[1];
|
||||
NSString * path = [pathComponents objectAtIndex: 0];
|
||||
NSString * name = [pathComponents objectAtIndex: 1];
|
||||
|
||||
if ([pathComponents count] > 2)
|
||||
{
|
||||
|
@ -1735,7 +1735,7 @@ int trashDataFile(const char * filename)
|
|||
NSParameterAssert([components count] > 0);
|
||||
NSParameterAssert(componentIndex < [components count]);
|
||||
|
||||
NSString * name = components[componentIndex];
|
||||
NSString * name = [components objectAtIndex: componentIndex];
|
||||
const BOOL isFolder = componentIndex < ([components count]-1);
|
||||
|
||||
//determine if folder node already exists
|
||||
|
|
Loading…
Reference in a new issue