mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-18 11:41:06 +00:00
([Enumerator -nextObject]): Pass pointer to ENUM_STATE.
([Enumerator -dealloc]): Likewise. ([ConstantCollection -detectObjectByInvoking:]): Use -returnValueIsTrue. ([ConstantCollection -printForDebugger]): Use object_get_class_name instead of -name because -name is now ambiguously typed. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1032 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c5f461d3a3
commit
a7cfff726b
1 changed files with 5 additions and 4 deletions
|
@ -40,12 +40,12 @@
|
|||
|
||||
- nextObject
|
||||
{
|
||||
return [collection nextObjectWithEnumState: enum_state];
|
||||
return [collection nextObjectWithEnumState: &enum_state];
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
{
|
||||
[collection freeEnumState: enum_state];
|
||||
[collection freeEnumState: &enum_state];
|
||||
[collection release];
|
||||
}
|
||||
|
||||
|
@ -305,7 +305,8 @@
|
|||
|
||||
FOR_COLLECTION_WHILE_TRUE(self, o, flag)
|
||||
{
|
||||
if ([anInvocation invokeWithObject: o])
|
||||
[anInvocation invokeWithObject: o];
|
||||
if ([anInvocation returnValueIsTrue])
|
||||
{
|
||||
flag = NO;
|
||||
detectedObject = o;
|
||||
|
@ -593,7 +594,7 @@
|
|||
printf("%s ", [[o description] cStringNoCopy]);
|
||||
}
|
||||
END_FOR_COLLECTION(self);
|
||||
printf(": %s\n", [self name]);
|
||||
printf(": %s\n", object_get_class_name (self));
|
||||
return self;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue