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