[Libreoffice-commits] core.git: vcl/qa
Miklos Vajna
vmiklos at collabora.co.uk
Wed Apr 26 12:15:29 UTC 2017
vcl/qa/cppunit/errorhandler.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 93dbd417fde5907b9ccff6cc54b37cfacc0cab27
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Wed Apr 26 14:10:36 2017 +0200
CppunitTest_vcl_errorhandler: fix loplugin:simplifybool warnings
Change-Id: If2af785961b06efa56c2a55bef6b3b364bf91d57
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");
}
More information about the Libreoffice-commits
mailing list