Просмотр исходного кода

Fix and use correct pointers and types.

Should have been `XMLDeclaration* decl = ...` instead of `XMLElement* ele = ...`
Sarat Addepalli 10 лет назад
Родитель
Сommit
3df007ef9d
1 измененных файлов с 1 добавлено и 1 удалено
  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.