mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +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@102 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
76e11c70ff
commit
ccba829270
1 changed files with 3 additions and 16 deletions
|
@ -26,11 +26,10 @@
|
|||
|
||||
@implementation Array
|
||||
|
||||
+ initialize
|
||||
+ (void) initialize
|
||||
{
|
||||
if (self == [Array class])
|
||||
[self setVersion:0]; /* beta release */
|
||||
return self;
|
||||
}
|
||||
|
||||
// MANAGING CAPACITY;
|
||||
|
@ -140,22 +139,10 @@
|
|||
return self;
|
||||
}
|
||||
|
||||
- free
|
||||
- (void) dealloc
|
||||
{
|
||||
OBJC_FREE(_contents_array);
|
||||
return [super free];
|
||||
}
|
||||
|
||||
- freeObjects
|
||||
{
|
||||
if (CONTAINS_OBJECTS)
|
||||
{
|
||||
[self makeObjectsPerform:@selector(free)];
|
||||
[self empty];
|
||||
}
|
||||
else
|
||||
[self empty];
|
||||
return self;
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
- initWithContentsOf: (id <Collecting>)aCollection
|
||||
|
|
Loading…
Reference in a new issue