From dd8e257dd9fa6aa0337c12e4e2d6eca44aa2b1ec Mon Sep 17 00:00:00 2001 From: Gregory John Casamento Date: Tue, 3 Jan 2012 17:49:09 +0000 Subject: [PATCH] * Source/NSXMLNode.m: Implement copyWithZone: git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34405 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 4 ++++ Source/NSXMLNode.m | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index efb072e4e..81b74ca27 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2012-01-03 12:42-EST Gregory John Casamento + + * Source/NSXMLNode.m: Implement copyWithZone: + 2012-01-03 12:17-EST Gregory John Casamento * Headers/Foundation/NSXMLNode.h: Add _stringValue diff --git a/Source/NSXMLNode.m b/Source/NSXMLNode.m index 2cc25b31a..a06b0ab5e 100644 --- a/Source/NSXMLNode.m +++ b/Source/NSXMLNode.m @@ -226,17 +226,16 @@ GS_PRIVATE_INTERNAL(NSXMLNode) - (id) copyWithZone: (NSZone*)zone { - [self notImplemented: _cmd]; - return nil; + return NSCopyObject(self,0,zone); } - (void) dealloc { [self detach]; [internal->children release]; - GS_DESTROY_INTERNAL(NSXMLNode) + GS_DESTROY_INTERNAL(NSXMLNode); [_objectValue release]; - [_name release]; + [_stringValue release]; [super dealloc]; } @@ -558,5 +557,6 @@ GS_PRIVATE_INTERNAL(NSXMLNode) return [self notImplemented: _cmd]; } + @end