From d138f7cd3efb6c4667ae12c7b48f92c1cc69da2d Mon Sep 17 00:00:00 2001 From: mccallum Date: Mon, 9 Oct 1995 18:59:26 +0000 Subject: [PATCH] ([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 --- Source/IndexedCollection.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/IndexedCollection.m b/Source/IndexedCollection.m index 6a94fefe4..a120f18fc 100644 --- a/Source/IndexedCollection.m +++ b/Source/IndexedCollection.m @@ -729,7 +729,7 @@ [newColl appendElement:e]; } [self withElementsInReverseCall:doIt]; - return self; + return newColl; } @@ -785,14 +785,14 @@ - withElementsInReverseCall: (void(*)(elt))aFunc; { - BOOL flag = NO; + BOOL flag = YES; [self withElementsInReverseCall:aFunc whileTrue:&flag]; return self; } - safeWithElementsInReverseCall: (void(*)(elt))aFunc; { - BOOL flag = NO; + BOOL flag = YES; [self safeWithElementsInReverseCall:aFunc whileTrue:&flag]; return self; }