Explorar o código

Fix and use correct pointers and types.

Should have been `XMLDeclaration* decl = ...` instead of `XMLElement* ele = ...`
Sarat Addepalli %!s(int64=10) %!d(string=hai) anos
pai
achega
3df007ef9d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tinyxml2.cpp

+ 1 - 1
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.