diff options
Diffstat (limited to 'vcl/qa')
-rw-r--r-- | vcl/qa/cppunit/errorhandler.cxx | 6 | ||||
-rw-r--r-- | vcl/qa/cppunit/jpeg/JpegReaderTest.cxx | 4 |
2 files changed, 5 insertions, 5 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; } diff --git a/vcl/qa/cppunit/jpeg/JpegReaderTest.cxx b/vcl/qa/cppunit/jpeg/JpegReaderTest.cxx index 127de3c9f0e0..024316c9e739 100644 --- a/vcl/qa/cppunit/jpeg/JpegReaderTest.cxx +++ b/vcl/qa/cppunit/jpeg/JpegReaderTest.cxx @@ -96,8 +96,8 @@ Bitmap JpegReaderTest::loadJPG(const OUString& aURL) GraphicFilter& rFilter = GraphicFilter::GetGraphicFilter(); Graphic aGraphic; SvFileStream aFileStream(aURL, StreamMode::READ); - sal_uInt16 bResult = rFilter.ImportGraphic(aGraphic, aURL, aFileStream); - CPPUNIT_ASSERT_EQUAL(sal_uInt16(0), bResult); + ErrCode bResult = rFilter.ImportGraphic(aGraphic, aURL, aFileStream); + CPPUNIT_ASSERT_EQUAL(ERRCODE_NONE, bResult); return aGraphic.GetBitmapEx().GetBitmap(); } |