mirror of
https://github.com/AxioDL/tinyxml2.git
synced 2025-07-05 12:45:55 +00:00
Bypass asserts for XMLDocument::Value()
When the node is an XMLDocument, bypass calling the `_value.GetStr()` function, since we know we have to return `( const char* )0` inevitably. This fixes #323
This commit is contained in:
parent
13b2d73427
commit
9c3122b89b
@ -645,6 +645,8 @@ XMLNode::~XMLNode()
|
||||
|
||||
const char* XMLNode::Value() const
|
||||
{
|
||||
if ( this->ToDocument() )
|
||||
return ( const char* )0;
|
||||
return _value.GetStr();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user