Use NSDefaultMallocZone() instead of NS_NOZONE.

Use NSZoneFromPointer() instead of NSZoneFromPtr().


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2002 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Andrew McCallum 1997-01-06 21:34:06 +00:00
parent f7ea36c75b
commit f4dff61e12

View file

@ -120,7 +120,7 @@ NSDecrementExtraRefCountWasZero (id anObject)
+ (id) alloc
{
return [self allocWithZone:NS_NOZONE];
return [self allocWithZone: NSDefaultMallocZone()];
}
+ (id) allocWithZone: (NSZone*)z
@ -140,7 +140,7 @@ NSDecrementExtraRefCountWasZero (id anObject)
- (id) copy
{
return [self copyWithZone: NS_NOZONE];
return [self copyWithZone: NSDefaultMallocZone()];
}
- (void) dealloc
@ -167,7 +167,7 @@ NSDecrementExtraRefCountWasZero (id anObject)
- (id) mutableCopy
{
return [self mutableCopyWithZone: NS_NOZONE];
return [self mutableCopyWithZone: NSDefaultMallocZone()];
}
+ (Class) superclass
@ -458,7 +458,7 @@ NSDecrementExtraRefCountWasZero (id anObject)
- (NSZone *)zone
{
return NSZoneFromPtr(self);
return NSZoneFromPointer(self);
}
- (void) encodeWithCoder: (NSCoder*)aCoder