소스 검색

Merge pull request #269 from Dmitry-Me/makeFormattingConsistent

Fix formatting, get rid of useless if-else chain
Lee Thomason 11 년 전
부모
커밋
d15686653a
1개의 변경된 파일과 2개의 추가작업 그리고 1개의 파일을 삭제
  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 );
         }
     }