1
0
mirror of https://github.com/leethomason/tinyxml2.git synced 2026-07-29 23:22:59 +04:00

clean up Value of XMLDocument

This commit is contained in:
Lee Thomason
2015-05-22 11:07:45 -07:00
3 changed files with 43 additions and 21 deletions
+3
View File
@@ -645,6 +645,9 @@ XMLNode::~XMLNode()
const char* XMLNode::Value() const
{
// Catch an edge case: XMLDocuments don't have a a Value. Carefully return nullptr.
if ( this->ToDocument() )
return 0;
return _value.GetStr();
}