summaryrefslogtreecommitdiff
path: root/vcl/qa
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2017-04-26 14:10:36 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2017-04-26 14:10:36 +0200
commit93dbd417fde5907b9ccff6cc54b37cfacc0cab27 (patch)
treebdd80211b898a12c10194e3208544ca2a0764207 /vcl/qa
parentdbd20b5c793cab388f01b7172df91429b6324418 (diff)
CppunitTest_vcl_errorhandler: fix loplugin:simplifybool warnings
Change-Id: If2af785961b06efa56c2a55bef6b3b364bf91d57
Diffstat (limited to 'vcl/qa')
-rw-r--r--vcl/qa/cppunit/errorhandler.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/qa/cppunit/errorhandler.cxx b/vcl/qa/cppunit/errorhandler.cxx
index f68035239839..e86cc793d2bd 100644
--- a/vcl/qa/cppunit/errorhandler.cxx
+++ b/vcl/qa/cppunit/errorhandler.cxx
@@ -48,13 +48,13 @@ void ErrorHandlerTest::testGetErrorString()
OUString aErrStr;
CPPUNIT_ASSERT_MESSAGE("GetErrorString(ERRCODE_ABORT, aErrStr) should return false",
- ErrorHandler::GetErrorString(ERRCODE_ABORT, aErrStr) == false);
+ !ErrorHandler::GetErrorString(ERRCODE_ABORT, aErrStr));
// normally protected, but MockErrorHandler is a friend of this class
aErrHdlr.CreateString(ErrorInfo::GetErrorInfo(ERRCODE_ABORT), aErrStr);
CPPUNIT_ASSERT_MESSAGE("error message should be non-dynamic", aErrStr == "Non-dynamic error");
CPPUNIT_ASSERT_MESSAGE("GetErrorString(ERRCODE_NONE, aErrStr) should return false",
- ErrorHandler::GetErrorString(ERRCODE_NONE, aErrStr) == false);
+ !ErrorHandler::GetErrorString(ERRCODE_NONE, aErrStr));
aErrHdlr.CreateString(ErrorInfo::GetErrorInfo(ERRCODE_NONE), aErrStr);
CPPUNIT_ASSERT_MESSAGE("error message should be non-dynamic", aErrStr == "Non-dynamic error");
}