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

More loplugin:simplifybool

Change-Id: Ifa8a855fc870a55fda8d801c22c15b0bc441fbe6
üst c82515eb
...@@ -111,7 +111,7 @@ short SvxOpenGraphicDialog::Execute() ...@@ -111,7 +111,7 @@ short SvxOpenGraphicDialog::Execute()
sal_uInt16 nImpRet; sal_uInt16 nImpRet;
bool bQuitLoop(false); bool bQuitLoop(false);
while( bQuitLoop == false && while( !bQuitLoop &&
mpImpl->aFileDlg.Execute() == ERRCODE_NONE ) mpImpl->aFileDlg.Execute() == ERRCODE_NONE )
{ {
if( !GetPath().isEmpty() ) if( !GetPath().isEmpty() )
......
...@@ -851,7 +851,7 @@ SfxMailModel::SendMailResult SfxMailModel::Send( const css::uno::Reference< css: ...@@ -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(); css::uno::Reference< css::awt::XWindow > xParentWindow = xFrame->getContainerWindow();
......
...@@ -2171,7 +2171,7 @@ sal_Bool SAL_CALL SfxDocumentMetaData::isModified( ) ...@@ -2171,7 +2171,7 @@ sal_Bool SAL_CALL SfxDocumentMetaData::isModified( )
checkInit(); checkInit();
css::uno::Reference<css::util::XModifiable> xMB(m_xUserDefined, css::uno::Reference<css::util::XModifiable> xMB(m_xUserDefined,
css::uno::UNO_QUERY); 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 ) void SAL_CALL SfxDocumentMetaData::setModified( sal_Bool bModified )
......
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