From d3f6c6361cab80174b470b7a50423c1d729590ab Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Wed, 30 Aug 2017 17:43:14 +0300 Subject: [PATCH] Test SetError() has effect --- xmltest.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xmltest.cpp b/xmltest.cpp index 7f2b22a..ca8995d 100644 --- a/xmltest.cpp +++ b/xmltest.cpp @@ -1924,7 +1924,9 @@ int main( int argc, const char ** argv ) { XMLDocument doc; for( int i = 0; i < XML_ERROR_COUNT; i++ ) { - doc.SetError( (XMLError)i, 0, 0, 0 ); + const XMLError error = static_cast(i); + doc.SetError( error, 0, 0, 0 ); + XMLTest( "ErrorID() after SetError()", error, doc.ErrorID() ); doc.ErrorName(); } }