From 3df007ef9d4c2ced820a186eaff6655525e10728 Mon Sep 17 00:00:00 2001 From: Sarat Addepalli Date: Wed, 20 May 2015 10:43:51 +0530 Subject: [PATCH] Fix and use correct pointers and types. Should have been `XMLDeclaration* decl = ...` instead of `XMLElement* ele = ...` --- tinyxml2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tinyxml2.cpp b/tinyxml2.cpp index 377ad23..2f6a5b9 100755 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp @@ -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.