Browse Source

Fix warnings in cpp code

git-svn-id: https://klish.googlecode.com/svn/trunk@403 0eaa4687-2ee9-07dd-09d9-bcdd2d2dd5fb
Serj Kalichev 13 years ago
parent
commit
6b1bd44739
2 changed files with 2 additions and 2 deletions
  1. 1 1
      tinyxml/tinystr.cpp
  2. 1 1
      tinyxml/tinyxmlparser.cpp

+ 1 - 1
tinyxml/tinystr.cpp

@@ -36,7 +36,7 @@ const TiXmlString::size_type TiXmlString::npos = static_cast< TiXmlString::size_
 
 
 // Null rep.
-TiXmlString::Rep TiXmlString::nullrep_ = { 0, 0, '\0' };
+TiXmlString::Rep TiXmlString::nullrep_ = { 0, 0, {'\0'} };
 
 
 void TiXmlString::reserve (size_type cap)

+ 1 - 1
tinyxml/tinyxmlparser.cpp

@@ -354,7 +354,7 @@ const char* TiXmlBase::SkipWhiteSpace( const char* p, TiXmlEncoding encoding )
 	}
 	else
 	{
-		while ( *p && IsWhiteSpace( *p ) || *p == '\n' || *p =='\r' )
+		while ( *p && (IsWhiteSpace( *p ) || (*p == '\n') || (*p =='\r')))
 			++p;
 	}