mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Garbage collection updates
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4510 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ee8a964960
commit
006286ee6a
22 changed files with 869 additions and 707 deletions
|
@ -62,7 +62,7 @@
|
|||
self = [super init];
|
||||
if (self)
|
||||
{
|
||||
set = [(NSGCountedSet*)d retain];
|
||||
set = RETAIN((NSGCountedSet*)d);
|
||||
node = set->map.firstNode;
|
||||
}
|
||||
return self;
|
||||
|
@ -82,7 +82,7 @@
|
|||
|
||||
- (void) dealloc
|
||||
{
|
||||
[set release];
|
||||
RELEASE(set);
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
|
@ -170,7 +170,7 @@
|
|||
|
||||
if (objs[i] == nil)
|
||||
{
|
||||
[self autorelease];
|
||||
AUTORELEASE(self);
|
||||
[NSException raise: NSInvalidArgumentException
|
||||
format: @"Tried to init counted set with nil value"];
|
||||
}
|
||||
|
@ -248,8 +248,8 @@
|
|||
|
||||
- (NSEnumerator*) objectEnumerator
|
||||
{
|
||||
return [[[NSGCountedSetEnumerator allocWithZone: NSDefaultMallocZone()]
|
||||
initWithSet: self] autorelease];
|
||||
return AUTORELEASE([[NSGCountedSetEnumerator allocWithZone:
|
||||
NSDefaultMallocZone()] initWithSet: self]);
|
||||
}
|
||||
|
||||
- (void) removeObject: (NSObject*)anObject
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue