mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
call count instead of length
This commit is contained in:
parent
425ffdb02c
commit
c8030ce0cb
1 changed files with 1 additions and 1 deletions
|
@ -961,7 +961,7 @@ compareIt(id o1, id o2, void* context)
|
|||
{
|
||||
NSArray* sortedValues = [[self allValues] sortedArrayWithOptions: opts usingComparator: cmptr];
|
||||
NSArray* noDuplicates = [[NSOrderedSet orderedSetWithArray:sortedValues] array];
|
||||
NSMutableArray* result = [[NSMutableArray alloc] initWithCapacity:[sortedValues length]];
|
||||
NSMutableArray* result = [[NSMutableArray alloc] initWithCapacity:[sortedValues count]];
|
||||
for (NSObject* value in noDuplicates) {
|
||||
[result addObjectsFromArray:[self allKeysForObject:value]];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue