More loplugin:simplifybool
Change-Id: I020627f1747bfa31e60d79954cdb9c8fe0a4e5f2
This commit is contained in:
@@ -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")
|
||||
|
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user