Przeglądaj źródła

Merge pull request #269 from Dmitry-Me/makeFormattingConsistent

Fix formatting, get rid of useless if-else chain
Lee Thomason 11 lat temu
rodzic
commit
d15686653a
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      tinyxml2.cpp

+ 2 - 1
tinyxml2.cpp

@@ -931,7 +931,8 @@ char* XMLText::ParseDeep( char* p, StrPair* )
         p = _value.ParseText( p, "<", flags );
         if ( p && *p ) {
             return p-1;
-        } else if ( !p ) {
+        }
+        if ( !p ) {
             _document->SetError( XML_ERROR_PARSING_TEXT, start, 0 );
         }
     }