More loplugin:simplifybool

Change-Id: If4b4f706152876e8b5631343fc7e39eeaa04964b
This commit is contained in:
Stephan Bergmann
2015-04-27 15:27:08 +02:00
parent 756a93250b
commit 510f056d3c
6 changed files with 7 additions and 7 deletions

View File

@@ -511,7 +511,7 @@ void ProgressCmdEnv::handle( uno::Reference< task::XInteractionRequest > const &
approve = true;
}
if (approve == false && abort == false)
if (!approve && !abort)
{
// forward to UUI handler:
if (! m_xHandler.is()) {

View File

@@ -1180,7 +1180,7 @@ void ExtensionBox_Impl::checkEntries()
ITER iIndex = m_vEntries.begin();
while ( iIndex < m_vEntries.end() )
{
if ( (*iIndex)->m_bChecked == false )
if ( !(*iIndex)->m_bChecked )
{
(*iIndex)->m_bChecked = true;
bNeedsUpdate = true;

View File

@@ -657,7 +657,7 @@ void UpdateCommandEnv::handle(
approve = true;
}
if (approve == false)
if (!approve)
{
//forward to interaction handler for main dialog.
handleInteractionRequest( m_xContext, xRequest );

View File

@@ -76,7 +76,7 @@ void BaseCommandEnv::handle(
void BaseCommandEnv::handle_(bool approve, bool abort,
Reference< task::XInteractionRequest> const & xRequest )
{
if (approve == false && abort == false)
if (!approve && !abort)
{
//not handled so far -> forwarding
if (m_forwardHandler.is())

View File

@@ -362,7 +362,7 @@ UpdateInfoMap getOnlineUpdateInfos(
std::pair<UpdateInfoMap::iterator, bool> insertRet = infoMap.insert(
UpdateInfoMap::value_type(
dp_misc::getIdentifier(extension), UpdateInfo(extension)));
OSL_ASSERT(insertRet.second == true);
OSL_ASSERT(insertRet.second);
(void)insertRet;
}
}
@@ -375,7 +375,7 @@ UpdateInfoMap getOnlineUpdateInfos(
std::pair<UpdateInfoMap::iterator, bool> insertRet = infoMap.insert(
UpdateInfoMap::value_type(
dp_misc::getIdentifier(*i), UpdateInfo(*i)));
OSL_ASSERT(insertRet.second == true);
OSL_ASSERT(insertRet.second);
(void)insertRet;
}
}

View File

@@ -706,7 +706,7 @@ bool BackendImpl::PackageImpl::checkLicense(
throw css::deployment::DeploymentException(
"Could not interact with user.", 0, Any());
if (approve == true)
if (approve)
return true;
else
return false;