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:
parent
f051a2a789
commit
83daf61009
2 changed files with 3 additions and 3 deletions
|
@ -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];
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue