More loplugin:simplifybool

Change-Id: I020627f1747bfa31e60d79954cdb9c8fe0a4e5f2
This commit is contained in:
Stephan Bergmann
2015-04-27 15:29:28 +02:00
parent a390d178b0
commit c8509a027f
2 changed files with 4 additions and 4 deletions

View File

@@ -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")

View File

@@ -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);
}
}