mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 09:02:01 +00:00
([NSDictionary -allKeysForObject:]): Ask SELF for objectForKey:, not K.
(Reported by Robert Quillen <rquillen@csugrad.cs.vt.edu>). git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1335 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
53c9fcbed6
commit
2cff25e764
1 changed files with 2 additions and 2 deletions
|
@ -229,9 +229,9 @@ static Class NSMutableDictionary_concrete_class;
|
||||||
int c = 0;
|
int c = 0;
|
||||||
|
|
||||||
while ((k = [e nextObject]))
|
while ((k = [e nextObject]))
|
||||||
if ([anObject isEqual:[k objectForKey:k]])
|
if ([anObject isEqual: [self objectForKey: k]])
|
||||||
a[c++] = k;
|
a[c++] = k;
|
||||||
return [[[NSArray alloc] initWithObjects:a count:c]
|
return [[[NSArray alloc] initWithObjects: a count: c]
|
||||||
autorelease];
|
autorelease];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue