Fix and use correct pointers and types.

Should have been `XMLDeclaration* decl = ...` instead of `XMLElement* ele = ...`
This commit is contained in:
Sarat Addepalli 2015-05-20 10:43:51 +05:30
parent 8e85afa406
commit 3df007ef9d
1 changed files with 1 additions and 1 deletions

View File

@ -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.