commit | 3df007ef9d4c2ced820a186eaff6655525e10728 | [log] [tgz] |
---|---|---|
author | Sarat Addepalli <SirR4T@users.noreply.github.com> | Wed May 20 10:43:51 2015 +0530 |
committer | Sarat Addepalli <SirR4T@users.noreply.github.com> | Wed May 20 10:43:51 2015 +0530 |
tree | 3d4a6cec71f30d10b960489e8fee5081632bd8da | |
parent | 8e85afa406b3519f8751a6bbfd31ce0d8a21c168 [diff] [blame] |
Fix and use correct pointers and types. Should have been `XMLDeclaration* decl = ...` instead of `XMLElement* ele = ...`
diff --git a/tinyxml2.cpp b/tinyxml2.cpp index 377ad23..2f6a5b9 100755 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp
@@ -887,7 +887,7 @@ 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.