mirror of https://github.com/AxioDL/tinyxml2.git
Fix and use correct pointers and types.
Should have been `XMLDeclaration* decl = ...` instead of `XMLElement* ele = ...`
This commit is contained in:
parent
8e85afa406
commit
3df007ef9d
|
@ -887,7 +887,7 @@ char* XMLNode::ParseDeep( char* p, StrPair* parentEnd )
|
|||
break;
|
||||
}
|
||||
|
||||
XMLElement* ele = node->ToDeclaration();
|
||||
XMLDeclaration* decl = node->ToDeclaration();
|
||||
if ( decl ) {
|
||||
// A declaration can only be the first child of a document.
|
||||
// Set error, if document already has children.
|
||||
|
|
Loading…
Reference in New Issue