mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Removed ([-copyWithZone:]) and ([-mutableCopyWithZone:])
(which shiould not exist in NSObject). git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2847 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1a6c0f94c6
commit
2423aef513
1 changed files with 8 additions and 12 deletions
|
@ -28,6 +28,7 @@
|
|||
#include <objc/Protocol.h>
|
||||
#include <objc/objc-api.h>
|
||||
#include <Foundation/NSMethodSignature.h>
|
||||
#include <gnustep/base/Invocation.h>
|
||||
#include <Foundation/NSInvocation.h>
|
||||
#include <Foundation/NSAutoreleasePool.h>
|
||||
#include <Foundation/NSString.h>
|
||||
|
@ -144,19 +145,19 @@ extraRefCount (id anObject)
|
|||
return NSAllocateObject (self, 0, z);
|
||||
}
|
||||
|
||||
+ (id) copyWithZone: (NSZone*)z
|
||||
{
|
||||
return self;
|
||||
}
|
||||
|
||||
+ (id) new
|
||||
{
|
||||
return [[self alloc] init];
|
||||
}
|
||||
|
||||
- copyWithZone:(NSZone *)zone
|
||||
{
|
||||
return NSCopyObject (self, 0, zone);
|
||||
}
|
||||
|
||||
- (id) copy
|
||||
{
|
||||
return [self copyWithZone: NSDefaultMallocZone()];
|
||||
return [(id)self copyWithZone: NSDefaultMallocZone()];
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
|
@ -176,14 +177,9 @@ extraRefCount (id anObject)
|
|||
return self;
|
||||
}
|
||||
|
||||
- mutableCopyWithZone:(NSZone *)zone
|
||||
{
|
||||
return [self copyWithZone:zone];
|
||||
}
|
||||
|
||||
- (id) mutableCopy
|
||||
{
|
||||
return [self mutableCopyWithZone: NSDefaultMallocZone()];
|
||||
return [(id)self mutableCopyWithZone: NSDefaultMallocZone()];
|
||||
}
|
||||
|
||||
+ (Class) superclass
|
||||
|
|
Loading…
Reference in a new issue