Kaydet (Commit) c8509a02 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

More loplugin:simplifybool

Change-Id: I020627f1747bfa31e60d79954cdb9c8fe0a4e5f2
üst a390d178
...@@ -104,7 +104,7 @@ void XDatabaseRange::testGetSortDescriptor() ...@@ -104,7 +104,7 @@ void XDatabaseRange::testGetSortDescriptor()
{ {
bool bCopyOutputData = true; bool bCopyOutputData = true;
xProp.Value >>= bCopyOutputData; xProp.Value >>= bCopyOutputData;
CPPUNIT_ASSERT(bCopyOutputData == false); CPPUNIT_ASSERT(!bCopyOutputData);
} }
else if (xProp.Name == "OutputPosition") else if (xProp.Name == "OutputPosition")
{ {
...@@ -114,7 +114,7 @@ void XDatabaseRange::testGetSortDescriptor() ...@@ -114,7 +114,7 @@ void XDatabaseRange::testGetSortDescriptor()
{ {
bool bIsUserListEnabled = true; bool bIsUserListEnabled = true;
xProp.Value >>= bIsUserListEnabled; xProp.Value >>= bIsUserListEnabled;
CPPUNIT_ASSERT(bIsUserListEnabled == false); CPPUNIT_ASSERT(!bIsUserListEnabled);
} }
else if (xProp.Name == "UserListIndex") else if (xProp.Name == "UserListIndex")
......
...@@ -54,7 +54,7 @@ void XSheetAnnotation::testGetIsVisible() ...@@ -54,7 +54,7 @@ void XSheetAnnotation::testGetIsVisible()
uno::Reference< sheet::XSheetAnnotation > aSheetAnnotation (init(), UNO_QUERY_THROW); uno::Reference< sheet::XSheetAnnotation > aSheetAnnotation (init(), UNO_QUERY_THROW);
bool isVisible = aSheetAnnotation->getIsVisible(); bool isVisible = aSheetAnnotation->getIsVisible();
CPPUNIT_ASSERT_MESSAGE("Wrong visible state", isVisible == true); CPPUNIT_ASSERT_MESSAGE("Wrong visible state", isVisible);
} }
void XSheetAnnotation::testSetIsVisible() void XSheetAnnotation::testSetIsVisible()
{ {
...@@ -62,7 +62,7 @@ void XSheetAnnotation::testSetIsVisible() ...@@ -62,7 +62,7 @@ void XSheetAnnotation::testSetIsVisible()
aSheetAnnotation->setIsVisible(false); aSheetAnnotation->setIsVisible(false);
bool isVisible = aSheetAnnotation->getIsVisible(); bool isVisible = aSheetAnnotation->getIsVisible();
CPPUNIT_ASSERT_MESSAGE("Visible state not changed", isVisible == false); CPPUNIT_ASSERT_MESSAGE("Visible state not changed", !isVisible);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment