fixups for libobjc2

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29753 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2010-02-25 18:49:31 +00:00
parent 145a5670bf
commit 14b91c9052
67 changed files with 328 additions and 253 deletions

View file

@ -263,7 +263,7 @@ static Class mutableSetClass;
if (objs[i] == nil)
{
IF_NO_GC(AUTORELEASE(self));
DESTROY(self);
[NSException raise: NSInvalidArgumentException
format: @"Tried to init set with nil value"];
}
@ -745,7 +745,7 @@ static Class mutableSetClass;
- (id) initWithCoder: (NSCoder*)aCoder
{
NSLog(@"Warning - decoding archive containing obsolete %@ object - please delete/replace this archive", NSStringFromClass([self class]));
RELEASE(self);
DESTROY(self);
self = (id)NSAllocateObject([GSSet class], 0, NSDefaultMallocZone());
self = [self initWithCoder: aCoder];
return self;
@ -758,7 +758,7 @@ static Class mutableSetClass;
- (id) initWithCoder: (NSCoder*)aCoder
{
NSLog(@"Warning - decoding archive containing obsolete %@ object - please delete/replace this archive", NSStringFromClass([self class]));
RELEASE(self);
DESTROY(self);
self = (id)NSAllocateObject([GSMutableSet class], 0, NSDefaultMallocZone());
self = [self initWithCoder: aCoder];
return self;