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

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();
}