mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
cleaned up some more things
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34507 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8772885b71
commit
a9e3ce01aa
3 changed files with 42 additions and 10 deletions
|
@ -43,6 +43,7 @@ GS_PRIVATE_INTERNAL(NSXMLNode)
|
|||
|
||||
- (void) _setNode: (void *)_anode
|
||||
{
|
||||
((xmlNodePtr)_anode)->_private = self;
|
||||
internal->node = _anode;
|
||||
}
|
||||
@end
|
||||
|
@ -234,12 +235,15 @@ GS_PRIVATE_INTERNAL(NSXMLNode)
|
|||
- (id) copyWithZone: (NSZone*)zone
|
||||
{
|
||||
id c = [[self class] allocWithZone: zone];
|
||||
xmlNodePtr newNode = xmlCopyNode([self _node], 1); // make a deep copy
|
||||
|
||||
c = [c initWithKind: internal->kind options: internal->options];
|
||||
[c setName: [self name]];
|
||||
[c setURI: [self URI]];
|
||||
[c setObjectValue: [self objectValue]];
|
||||
[c setStringValue: [self stringValue]];
|
||||
[c _setNode:newNode];
|
||||
|
||||
// [c setName: [self name]];
|
||||
// [c setURI: [self URI]];
|
||||
// [c setObjectValue: [self objectValue]];
|
||||
// [c setStringValue: [self stringValue]];
|
||||
|
||||
return c;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue