Explorar el Código

Merge pull request #269 from Dmitry-Me/makeFormattingConsistent

Fix formatting, get rid of useless if-else chain
Lee Thomason hace 11 años
padre
commit
d15686653a
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      tinyxml2.cpp

+ 2 - 1
tinyxml2.cpp

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