mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
f7ea36c75b
commit
f4dff61e12
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue