mirror of https://github.com/AxioDL/tinyxml2.git
Better parameter name
This commit is contained in:
parent
bc527554e8
commit
3f63f21cf5
|
@ -772,13 +772,13 @@ void XMLNode::SetValue( const char* str, bool staticMem )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
XMLNode* XMLNode::DeepClone(XMLDocument* document) const
|
XMLNode* XMLNode::DeepClone(XMLDocument* target) const
|
||||||
{
|
{
|
||||||
XMLNode* clone = this->ShallowClone(document);
|
XMLNode* clone = this->ShallowClone(target);
|
||||||
if (!clone) return 0;
|
if (!clone) return 0;
|
||||||
|
|
||||||
for (const XMLNode* child = this->FirstChild(); child; child = child->NextSibling()) {
|
for (const XMLNode* child = this->FirstChild(); child; child = child->NextSibling()) {
|
||||||
XMLNode* childClone = child->DeepClone(document);
|
XMLNode* childClone = child->DeepClone(target);
|
||||||
TIXMLASSERT(childClone);
|
TIXMLASSERT(childClone);
|
||||||
clone->InsertEndChild(childClone);
|
clone->InsertEndChild(childClone);
|
||||||
}
|
}
|
||||||
|
|
|
@ -868,8 +868,8 @@ public:
|
||||||
/**
|
/**
|
||||||
Make a copy of this node and all its children.
|
Make a copy of this node and all its children.
|
||||||
|
|
||||||
If the 'document' is null, then the nodes will
|
If the 'target' is null, then the nodes will
|
||||||
be allocated in the current document. If document
|
be allocated in the current document. If 'target'
|
||||||
is specified, the memory will be allocated is the
|
is specified, the memory will be allocated is the
|
||||||
specified XMLDocument.
|
specified XMLDocument.
|
||||||
|
|
||||||
|
@ -878,7 +878,7 @@ public:
|
||||||
top level XMLNodes. You probably want to use
|
top level XMLNodes. You probably want to use
|
||||||
XMLDocument::DeepCopy()
|
XMLDocument::DeepCopy()
|
||||||
*/
|
*/
|
||||||
XMLNode* DeepClone( XMLDocument* document ) const;
|
XMLNode* DeepClone( XMLDocument* target ) const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Test if 2 nodes are the same, but don't test children.
|
Test if 2 nodes are the same, but don't test children.
|
||||||
|
|
Loading…
Reference in New Issue