* Source/NSXMLNode.m: Implement copyWithZone:

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34405 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2012-01-03 17:49:09 +00:00
parent 15fee4d787
commit dd8e257dd9
2 changed files with 8 additions and 4 deletions

View file

@ -1,3 +1,7 @@
2012-01-03 12:42-EST Gregory John Casamento <greg.casamento@gmail.com>
* Source/NSXMLNode.m: Implement copyWithZone:
2012-01-03 12:17-EST Gregory John Casamento <greg.casamento@gmail.com> 2012-01-03 12:17-EST Gregory John Casamento <greg.casamento@gmail.com>
* Headers/Foundation/NSXMLNode.h: Add _stringValue * Headers/Foundation/NSXMLNode.h: Add _stringValue

View file

@ -226,17 +226,16 @@ GS_PRIVATE_INTERNAL(NSXMLNode)
- (id) copyWithZone: (NSZone*)zone - (id) copyWithZone: (NSZone*)zone
{ {
[self notImplemented: _cmd]; return NSCopyObject(self,0,zone);
return nil;
} }
- (void) dealloc - (void) dealloc
{ {
[self detach]; [self detach];
[internal->children release]; [internal->children release];
GS_DESTROY_INTERNAL(NSXMLNode) GS_DESTROY_INTERNAL(NSXMLNode);
[_objectValue release]; [_objectValue release];
[_name release]; [_stringValue release];
[super dealloc]; [super dealloc];
} }
@ -558,5 +557,6 @@ GS_PRIVATE_INTERNAL(NSXMLNode)
return [self notImplemented: _cmd]; return [self notImplemented: _cmd];
} }
@end @end