mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Use release' and
dealloc' instead of `free'.
(initialize): return void. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@98 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3041551b0f
commit
65c2a03696
6 changed files with 34 additions and 62 deletions
|
@ -28,11 +28,10 @@
|
|||
|
||||
@implementation Dictionary
|
||||
|
||||
+ initialize
|
||||
+ (void) initialize
|
||||
{
|
||||
if (self == [Dictionary class])
|
||||
[self setVersion:0]; /* beta release */
|
||||
return self;
|
||||
}
|
||||
|
||||
// MANAGING CAPACITY;
|
||||
|
@ -143,22 +142,10 @@
|
|||
capacity:aCapacity];
|
||||
}
|
||||
|
||||
- free
|
||||
- (void) dealloc
|
||||
{
|
||||
coll_hash_delete(_contents_hash);
|
||||
return [super free];
|
||||
}
|
||||
|
||||
- freeObjects
|
||||
{
|
||||
if (CONTAINS_OBJECTS)
|
||||
{
|
||||
[self makeObjectsPerform:@selector(free)];
|
||||
[self empty];
|
||||
}
|
||||
else
|
||||
[self empty];
|
||||
return self;
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
/* This must work without sending any messages to content objects */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue