From 87cd4e05827d38d93bd23a55929e694b609ef42e Mon Sep 17 00:00:00 2001 From: Shuichiro Suzuki Date: Thu, 24 Aug 2017 11:20:26 +0900 Subject: [PATCH] Add 'const' on XMLDocument::DeepCopy. This make us copy const XMLDocument being copied to another document. --- tinyxml2.cpp | 2 +- tinyxml2.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tinyxml2.cpp b/tinyxml2.cpp index 8a3f857..5cdedbb 100755 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp @@ -2054,7 +2054,7 @@ void XMLDocument::Clear() } -void XMLDocument::DeepCopy(XMLDocument* target) +void XMLDocument::DeepCopy(XMLDocument* target) const { TIXMLASSERT(target); if (target == this) { diff --git a/tinyxml2.h b/tinyxml2.h index a372b41..7b5bb0e 100755 --- a/tinyxml2.h +++ b/tinyxml2.h @@ -1826,7 +1826,7 @@ public: NOTE: that the 'target' must be non-null. */ - void DeepCopy(XMLDocument* target); + void DeepCopy(XMLDocument* target) const; // internal char* Identify( char* p, XMLNode** node );