mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
Fix -getObjects:andKeys:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40036 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c2be055c3e
commit
ad428b99d5
3 changed files with 88 additions and 56 deletions
|
@ -863,10 +863,11 @@ static SEL appSel;
|
|||
- (void)getObjects: (__unsafe_unretained id[])objects
|
||||
andKeys: (__unsafe_unretained id<NSCopying>[])keys
|
||||
{
|
||||
int i=0;
|
||||
NSUInteger i=0;
|
||||
FOR_IN(id, key, self)
|
||||
keys[i] = key;
|
||||
objects[i] = [self objectForKey: key];
|
||||
if (keys != NULL) keys[i] = key;
|
||||
if (objects != NULL) objects[i] = [self objectForKey: key];
|
||||
i++;
|
||||
END_FOR_IN(self)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue