commit | e503563f479f72b0c32c8378abb0dac1f8619f71 | [log] [tgz] |
---|---|---|
author | Dmitry-Me <wipedout@yandex.ru> | Wed Apr 05 18:02:40 2017 +0300 |
committer | Dmitry-Me <wipedout@yandex.ru> | Wed Apr 05 18:02:40 2017 +0300 |
tree | 783c5afd07e2c40a32ff0a0051b7c9e7865e31e0 | |
parent | fc05f6357566940c9608ac9b616dfad1cf56b871 [diff] [blame] |
Fully use enum
diff --git a/tinyxml2.cpp b/tinyxml2.cpp index a645c57..0d6e2bc 100755 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp
@@ -1449,7 +1449,7 @@ // --------- XMLElement ---------- // XMLElement::XMLElement( XMLDocument* doc ) : XMLNode( doc ), - _closingType( 0 ), + _closingType( OPEN ), _rootAttribute( 0 ) { } @@ -1868,7 +1868,7 @@ } p = ParseAttributes( p, curLineNumPtr ); - if ( !p || !*p || _closingType ) { + if ( !p || !*p || _closingType != OPEN ) { return p; }