mirror of
https://github.com/AxioDL/tinyxml2.git
synced 2025-05-16 20:31:26 +00:00
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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
XMLElement* ele = node->ToDeclaration();
|
XMLDeclaration* decl = node->ToDeclaration();
|
||||||
if ( decl ) {
|
if ( decl ) {
|
||||||
// A declaration can only be the first child of a document.
|
// A declaration can only be the first child of a document.
|
||||||
// Set error, if document already has children.
|
// Set error, if document already has children.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user