From 3f63f21cf5bef0a530f024079d228b1d84e3faea Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Mon, 19 Jun 2017 18:25:19 +0300 Subject: [PATCH] Better parameter name --- tinyxml2.cpp | 6 +++--- tinyxml2.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tinyxml2.cpp b/tinyxml2.cpp index 772d2ae..fef6ae0 100755 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp @@ -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; for (const XMLNode* child = this->FirstChild(); child; child = child->NextSibling()) { - XMLNode* childClone = child->DeepClone(document); + XMLNode* childClone = child->DeepClone(target); TIXMLASSERT(childClone); clone->InsertEndChild(childClone); } diff --git a/tinyxml2.h b/tinyxml2.h index 3465f2f..bc15704 100755 --- a/tinyxml2.h +++ b/tinyxml2.h @@ -868,8 +868,8 @@ public: /** Make a copy of this node and all its children. - If the 'document' is null, then the nodes will - be allocated in the current document. If document + If the 'target' is null, then the nodes will + be allocated in the current document. If 'target' is specified, the memory will be allocated is the specified XMLDocument. @@ -878,7 +878,7 @@ public: top level XMLNodes. You probably want to use XMLDocument::DeepCopy() */ - XMLNode* DeepClone( XMLDocument* document ) const; + XMLNode* DeepClone( XMLDocument* target ) const; /** Test if 2 nodes are the same, but don't test children.