Explorar el Código

CodeReview Fix: The initializer syntax isn't used. Should be 'int unusedLineNum = 0`

kezenator hace 9 años
padre
commit
e3d44159e3
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      tinyxml2.cpp

+ 1 - 1
tinyxml2.cpp

@@ -238,7 +238,7 @@ void StrPair::CollapseWhitespace()
     // Adjusting _start would cause undefined behavior on delete[]
     TIXMLASSERT( ( _flags & NEEDS_DELETE ) == 0 );
     // Trim leading space.
-    int unusedLineNum(0);
+    int unusedLineNum = 0;
     _start = XMLUtil::SkipWhiteSpace( _start, &unusedLineNum );
 
     if ( *_start ) {