one successful return type. simplify build on vs2015
diff --git a/tinyxml2.cpp b/tinyxml2.cpp
index 36f37de..bfd8d1f 100755
--- a/tinyxml2.cpp
+++ b/tinyxml2.cpp
@@ -1286,7 +1286,7 @@
XMLError XMLAttribute::QueryIntValue( int* value ) const
{
if ( XMLUtil::ToInt( Value(), value )) {
- return XML_NO_ERROR;
+ return XML_SUCCESS;
}
return XML_WRONG_ATTRIBUTE_TYPE;
}
@@ -1295,7 +1295,7 @@
XMLError XMLAttribute::QueryUnsignedValue( unsigned int* value ) const
{
if ( XMLUtil::ToUnsigned( Value(), value )) {
- return XML_NO_ERROR;
+ return XML_SUCCESS;
}
return XML_WRONG_ATTRIBUTE_TYPE;
}
@@ -1304,7 +1304,7 @@
XMLError XMLAttribute::QueryBoolValue( bool* value ) const
{
if ( XMLUtil::ToBool( Value(), value )) {
- return XML_NO_ERROR;
+ return XML_SUCCESS;
}
return XML_WRONG_ATTRIBUTE_TYPE;
}
@@ -1313,7 +1313,7 @@
XMLError XMLAttribute::QueryFloatValue( float* value ) const
{
if ( XMLUtil::ToFloat( Value(), value )) {
- return XML_NO_ERROR;
+ return XML_SUCCESS;
}
return XML_WRONG_ATTRIBUTE_TYPE;
}
@@ -1322,7 +1322,7 @@
XMLError XMLAttribute::QueryDoubleValue( double* value ) const
{
if ( XMLUtil::ToDouble( Value(), value )) {
- return XML_NO_ERROR;
+ return XML_SUCCESS;
}
return XML_WRONG_ATTRIBUTE_TYPE;
}
@@ -1771,7 +1771,7 @@
XMLNode( 0 ),
_writeBOM( false ),
_processEntities( processEntities ),
- _errorID( XML_NO_ERROR ),
+ _errorID(XML_SUCCESS),
_whitespace( whitespace ),
_errorStr1( 0 ),
_errorStr2( 0 ),
@@ -1795,7 +1795,7 @@
#ifdef DEBUG
const bool hadError = Error();
#endif
- _errorID = XML_NO_ERROR;
+ _errorID = XML_SUCCESS;
_errorStr1 = 0;
_errorStr2 = 0;
@@ -2000,7 +2000,7 @@
{
// Clear any error from the last save, otherwise it will get reported
// for *this* call.
- SetError( XML_NO_ERROR, 0, 0 );
+ SetError(XML_SUCCESS, 0, 0);
XMLPrinter stream( fp, compact );
Print( &stream );
return _errorID;