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