More loplugin:simplifybool

Change-Id: Ifa8a855fc870a55fda8d801c22c15b0bc441fbe6
This commit is contained in:
Stephan Bergmann
2015-04-27 15:28:55 +02:00
parent c82515eb6b
commit 343397c376
3 changed files with 3 additions and 3 deletions

View File

@@ -111,7 +111,7 @@ short SvxOpenGraphicDialog::Execute()
sal_uInt16 nImpRet;
bool bQuitLoop(false);
while( bQuitLoop == false &&
while( !bQuitLoop &&
mpImpl->aFileDlg.Execute() == ERRCODE_NONE )
{
if( !GetPath().isEmpty() )

View File

@@ -851,7 +851,7 @@ SfxMailModel::SendMailResult SfxMailModel::Send( const css::uno::Reference< css:
{
}
if ( bSend == false )
if ( !bSend )
{
css::uno::Reference< css::awt::XWindow > xParentWindow = xFrame->getContainerWindow();

View File

@@ -2171,7 +2171,7 @@ sal_Bool SAL_CALL SfxDocumentMetaData::isModified( )
checkInit();
css::uno::Reference<css::util::XModifiable> xMB(m_xUserDefined,
css::uno::UNO_QUERY);
return m_isModified || (xMB.is() ? xMB->isModified() : false);
return m_isModified || (xMB.is() && xMB->isModified());
}
void SAL_CALL SfxDocumentMetaData::setModified( sal_Bool bModified )