* 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>
* Headers/Foundation/NSXMLNode.h: Add _stringValue

View file

@ -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