* ChangeLog

* Source/NSXMLDocument.m
	* Source/NSXMLElement.m
	* Source/NSXMLNode.m: Implement copyWithZone:, correct issues
	with previous revert.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34428 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
gcasa 2012-01-06 02:43:26 +00:00
parent fa365da6de
commit 0d998a3394
4 changed files with 89 additions and 17 deletions

View file

@ -206,15 +206,26 @@ GS_PRIVATE_INTERNAL(NSXMLNode)
- (id) copyWithZone: (NSZone*)zone
{
id c = [[self class] allocWithZone: zone];
id c = [[self class] allocWithZone: zone];
// NSEnumerator *en = [internal->children objectEnumerator];
// id obj = nil;
c = [c initWithKind: internal->kind options: internal->options];
[c setName: [self name]];
[c setURI: [self URI]];
[c setObjectValue: [self objectValue]];
[c setStringValue: [self stringValue]];
/*
while((obj = [en nextObject]) != nil)
{
NSXMLNode *n = [obj copyWithZone:zone];
[self addChild: n];
}
*/
return c;
}
}
- (void) dealloc
{