1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-20 13:16:53 +00:00

cleanup for the removal of the ip sort function

This commit is contained in:
Mitchell Livingston 2008-06-27 06:08:12 +00:00
parent f051a2a789
commit 83daf61009
2 changed files with 3 additions and 3 deletions

View file

@ -1592,7 +1592,7 @@ typedef enum
if (useSecond)
{
NSSortDescriptor * secondDescriptor = [[NSSortDescriptor alloc] initWithKey: @"IP" ascending: asc
selector: @selector(compareFinder:)];
selector: @selector(compareNumeric:)];
[descriptors addObject: secondDescriptor];
[secondDescriptor release];
}

View file

@ -947,8 +947,8 @@
[oldDict objectForKey: @"Allow"], @"Allow", nil];
[fRPCAccessArray replaceObjectAtIndex: row withObject: newDict];
NSSortDescriptor * descriptor = [[[NSSortDescriptor alloc] initWithKey: @"IP" ascending: YES selector: @selector(compareIP:)]
autorelease];
NSSortDescriptor * descriptor = [[[NSSortDescriptor alloc] initWithKey: @"IP" ascending: YES
selector: @selector(compareNumeric:)] autorelease];
[fRPCAccessArray sortUsingDescriptors: [NSArray arrayWithObject: descriptor]];
}
else