Explorar el Código

Fix formatting, get rid of useless if-else chain

Dmitry-Me hace 11 años
padre
commit
257e11b25b
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      tinyxml2.cpp

+ 2 - 1
tinyxml2.cpp

@@ -929,7 +929,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 );
         }
     }