From c8509a027f2caea5e4aed16a7145d0b31bb93145 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 27 Apr 2015 15:29:28 +0200 Subject: [PATCH] More loplugin:simplifybool Change-Id: I020627f1747bfa31e60d79954cdb9c8fe0a4e5f2 --- test/source/sheet/xdatabaserange.cxx | 4 ++-- test/source/sheet/xsheetannotation.cxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/source/sheet/xdatabaserange.cxx b/test/source/sheet/xdatabaserange.cxx index 4bd0d27d61a0..8c30ed8789d2 100644 --- a/test/source/sheet/xdatabaserange.cxx +++ b/test/source/sheet/xdatabaserange.cxx @@ -104,7 +104,7 @@ void XDatabaseRange::testGetSortDescriptor() { bool bCopyOutputData = true; xProp.Value >>= bCopyOutputData; - CPPUNIT_ASSERT(bCopyOutputData == false); + CPPUNIT_ASSERT(!bCopyOutputData); } else if (xProp.Name == "OutputPosition") { @@ -114,7 +114,7 @@ void XDatabaseRange::testGetSortDescriptor() { bool bIsUserListEnabled = true; xProp.Value >>= bIsUserListEnabled; - CPPUNIT_ASSERT(bIsUserListEnabled == false); + CPPUNIT_ASSERT(!bIsUserListEnabled); } else if (xProp.Name == "UserListIndex") diff --git a/test/source/sheet/xsheetannotation.cxx b/test/source/sheet/xsheetannotation.cxx index fd118ab44281..2755f5661a58 100644 --- a/test/source/sheet/xsheetannotation.cxx +++ b/test/source/sheet/xsheetannotation.cxx @@ -54,7 +54,7 @@ void XSheetAnnotation::testGetIsVisible() uno::Reference< sheet::XSheetAnnotation > aSheetAnnotation (init(), UNO_QUERY_THROW); bool isVisible = aSheetAnnotation->getIsVisible(); - CPPUNIT_ASSERT_MESSAGE("Wrong visible state", isVisible == true); + CPPUNIT_ASSERT_MESSAGE("Wrong visible state", isVisible); } void XSheetAnnotation::testSetIsVisible() { @@ -62,7 +62,7 @@ void XSheetAnnotation::testSetIsVisible() aSheetAnnotation->setIsVisible(false); bool isVisible = aSheetAnnotation->getIsVisible(); - CPPUNIT_ASSERT_MESSAGE("Visible state not changed", isVisible == false); + CPPUNIT_ASSERT_MESSAGE("Visible state not changed", !isVisible); } }