Procházet zdrojové kódy

Fix and use correct pointers and types.

Should have been `XMLDeclaration* decl = ...` instead of `XMLElement* ele = ...`
Sarat Addepalli před 11 roky
rodič
revize
3df007ef9d
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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.