mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 09:02:01 +00:00
([IndexedCollection -shallowCopyInReverseAs:]): Return newColl, not
self. ([IndexedCollection -withElementsInReverseCall:]): Set flag to YES. ([IndexedCollection -safeWithElementsInReverseCall:]): Likewise. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@623 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
26d784307d
commit
d138f7cd3e
1 changed files with 3 additions and 3 deletions
|
@ -729,7 +729,7 @@
|
||||||
[newColl appendElement:e];
|
[newColl appendElement:e];
|
||||||
}
|
}
|
||||||
[self withElementsInReverseCall:doIt];
|
[self withElementsInReverseCall:doIt];
|
||||||
return self;
|
return newColl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -785,14 +785,14 @@
|
||||||
|
|
||||||
- withElementsInReverseCall: (void(*)(elt))aFunc;
|
- withElementsInReverseCall: (void(*)(elt))aFunc;
|
||||||
{
|
{
|
||||||
BOOL flag = NO;
|
BOOL flag = YES;
|
||||||
[self withElementsInReverseCall:aFunc whileTrue:&flag];
|
[self withElementsInReverseCall:aFunc whileTrue:&flag];
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
- safeWithElementsInReverseCall: (void(*)(elt))aFunc;
|
- safeWithElementsInReverseCall: (void(*)(elt))aFunc;
|
||||||
{
|
{
|
||||||
BOOL flag = NO;
|
BOOL flag = YES;
|
||||||
[self safeWithElementsInReverseCall:aFunc whileTrue:&flag];
|
[self safeWithElementsInReverseCall:aFunc whileTrue:&flag];
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue