summaryrefslogtreecommitdiff
path: root/vcl/qa/cppunit/errorhandler.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/qa/cppunit/errorhandler.cxx')
-rw-r--r--vcl/qa/cppunit/errorhandler.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/qa/cppunit/errorhandler.cxx b/vcl/qa/cppunit/errorhandler.cxx
index fc06ec1869d2..f59abb0f9a96 100644
--- a/vcl/qa/cppunit/errorhandler.cxx
+++ b/vcl/qa/cppunit/errorhandler.cxx
@@ -20,10 +20,10 @@ class MockErrorHandler : private ErrorHandler
protected:
virtual bool CreateString(const ErrorInfo *pErrInfo, OUString &rErrString) const override
{
- if (!(pErrInfo->GetErrorCode() & ERRCODE_DYNAMIC_MASK))
- rErrString = "Non-dynamic error";
- else
+ if (pErrInfo->GetErrorCode().IsDynamic())
rErrString = "Dynamic error";
+ else
+ rErrString = "Non-dynamic error";
return true;
}