mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 08:26:27 +00:00
([ConstantCollection -printCount]): Use object_get_class_name()
instead of sending -name. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1312 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
54acc69932
commit
b81efade7a
1 changed files with 3 additions and 3 deletions
|
@ -8,7 +8,7 @@
|
|||
@implementation ConstantCollection (TestingExtras)
|
||||
- printCount
|
||||
{
|
||||
printf("%s: count=%d\n", [self name], [self count]);
|
||||
printf("%s: count=%d\n", object_get_class_name (self), [self count]);
|
||||
return self;
|
||||
}
|
||||
@end
|
||||
|
@ -29,8 +29,8 @@ int main()
|
|||
int i;
|
||||
|
||||
id array = [Array new];
|
||||
id bag = [Bag new];
|
||||
id set = [Set new];
|
||||
// id bag = [Bag new];
|
||||
// id set = [Set new];
|
||||
id stack = [Stack new];
|
||||
id queue = [Queue new];
|
||||
id gaparray = [GapArray new];
|
||||
|
|
Loading…
Reference in a new issue