Override -init to use our own initialiser

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20013 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2004-09-07 09:22:10 +00:00
parent 90a810065d
commit 59decd99ff
4 changed files with 44 additions and 5 deletions

View file

@ -194,6 +194,11 @@ static Class mutableSetClass;
return map.nodeCount;
}
- (id) init
{
return [self initWithObjects: 0 count: 0];
}
- (id) initWithCoder: (NSCoder*)aCoder
{
if ([aCoder allowsKeyedCoding])
@ -551,6 +556,11 @@ static Class mutableSetClass;
return [copy initWithSet: self copyItems: NO];
}
- (id) init
{
return [self initWithCapacity: 0];
}
/* Designated initialiser */
- (id) initWithCapacity: (unsigned)cap
{