Test SetError() has effect

This commit is contained in:
Dmitry-Me 2017-08-30 17:43:14 +03:00
parent 4b173cbcf1
commit d3f6c6361c
1 changed files with 3 additions and 1 deletions

View File

@ -1924,7 +1924,9 @@ int main( int argc, const char ** argv )
{ {
XMLDocument doc; XMLDocument doc;
for( int i = 0; i < XML_ERROR_COUNT; i++ ) { for( int i = 0; i < XML_ERROR_COUNT; i++ ) {
doc.SetError( (XMLError)i, 0, 0, 0 ); const XMLError error = static_cast<XMLError>(i);
doc.SetError( error, 0, 0, 0 );
XMLTest( "ErrorID() after SetError()", error, doc.ErrorID() );
doc.ErrorName(); doc.ErrorName();
} }
} }