1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-22 06:00:41 +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) if (useSecond)
{ {
NSSortDescriptor * secondDescriptor = [[NSSortDescriptor alloc] initWithKey: @"IP" ascending: asc NSSortDescriptor * secondDescriptor = [[NSSortDescriptor alloc] initWithKey: @"IP" ascending: asc
selector: @selector(compareFinder:)]; selector: @selector(compareNumeric:)];
[descriptors addObject: secondDescriptor]; [descriptors addObject: secondDescriptor];
[secondDescriptor release]; [secondDescriptor release];
} }

View file

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