diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-04-20 17:19:30 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-04-20 17:27:24 +0200 |
commit | a8884ad99c491624d776a4a21f06e6453f71b25a (patch) | |
tree | 5f747acfdb24ac2faf6c0d1171ab925303bd1cfb /sfx2/source/dialog | |
parent | 259ece83e9b114ccc8403bbde97e5b11d4319865 (diff) |
loplugin:salbool: Automatic rewrite of sal_False/True
Change-Id: I3cb9226ef6bebb5062abfae312dce95f0ef74385
Diffstat (limited to 'sfx2/source/dialog')
-rw-r--r-- | sfx2/source/dialog/backingcomp.cxx | 6 | ||||
-rw-r--r-- | sfx2/source/dialog/backingwindow.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/dialog/dinfdlg.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/dialog/filedlghelper.cxx | 10 | ||||
-rw-r--r-- | sfx2/source/dialog/mailmodel.cxx | 4 | ||||
-rw-r--r-- | sfx2/source/dialog/partwnd.cxx | 4 |
6 files changed, 14 insertions, 14 deletions
diff --git a/sfx2/source/dialog/backingcomp.cxx b/sfx2/source/dialog/backingcomp.cxx index 91c57b02a382..defdaa36ed12 100644 --- a/sfx2/source/dialog/backingcomp.cxx +++ b/sfx2/source/dialog/backingcomp.cxx @@ -457,7 +457,7 @@ void SAL_CALL BackingComp::attachFrame( /*IN*/ const css::uno::Reference< css::f sal_Bool SAL_CALL BackingComp::attachModel( /*IN*/ const css::uno::Reference< css::frame::XModel >& ) throw (css::uno::RuntimeException, std::exception) { - return sal_False; + return false; } @@ -535,7 +535,7 @@ sal_Bool SAL_CALL BackingComp::suspend( /*IN*/ sal_Bool ) throw (css::uno::RuntimeException, std::exception) { /* FIXME ... implemented by using default :-( */ - return sal_True; + return true; } @@ -700,7 +700,7 @@ void SAL_CALL BackingComp::initialize( /*IN*/ const css::uno::Sequence< css::uno if (xBroadcaster.is()) xBroadcaster->addEventListener(static_cast< css::lang::XEventListener* >(this)); - m_xWindow->setVisible(sal_True); + m_xWindow->setVisible(true); /* } SAFE */ } diff --git a/sfx2/source/dialog/backingwindow.cxx b/sfx2/source/dialog/backingwindow.cxx index bb3ec7735b01..c3ef829332bf 100644 --- a/sfx2/source/dialog/backingwindow.cxx +++ b/sfx2/source/dialog/backingwindow.cxx @@ -641,7 +641,7 @@ IMPL_LINK_TYPED(BackingWindow, OpenTemplateHdl, ThumbnailViewItem*, pItem, void) { uno::Sequence< PropertyValue > aArgs(4); aArgs[0].Name = "AsTemplate"; - aArgs[0].Value <<= sal_True; + aArgs[0].Value <<= true; aArgs[1].Name = "MacroExecutionMode"; aArgs[1].Value <<= MacroExecMode::USE_CONFIG; aArgs[2].Name = "UpdateDocMode"; diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx index 94f529949829..ef8b863a8b2b 100644 --- a/sfx2/source/dialog/dinfdlg.cxx +++ b/sfx2/source/dialog/dinfdlg.cxx @@ -2565,7 +2565,7 @@ Sequence< document::CmisProperty > CmisPropertiesWindow::GetCmisProperties() con util::DateTime aDateTime( aTmpTime.GetNanoSec(), aTmpTime.GetSec(), aTmpTime.GetMin(), aTmpTime.GetHour(), aTmpDate.GetDay(), aTmpDate.GetMonth(), - aTmpDate.GetYear(), sal_True ); + aTmpDate.GetYear(), true ); seqValue[k] = aDateTime; } aPropertiesSeq[i].Value <<= makeAny( seqValue ); diff --git a/sfx2/source/dialog/filedlghelper.cxx b/sfx2/source/dialog/filedlghelper.cxx index a5f9a04340dc..1d6fe71d8431 100644 --- a/sfx2/source/dialog/filedlghelper.cxx +++ b/sfx2/source/dialog/filedlghelper.cxx @@ -540,14 +540,14 @@ void FileDialogHelper_Impl::enablePasswordBox( bool bInit ) { uno::Reference< XFilePickerControlAccess > xCtrlAccess( mxFileDlg, UNO_QUERY ); if( mbPwdCheckBoxState ) - xCtrlAccess->setValue( ExtendedFilePickerElementIds::CHECKBOX_PASSWORD, 0, makeAny( sal_True ) ); + xCtrlAccess->setValue( ExtendedFilePickerElementIds::CHECKBOX_PASSWORD, 0, makeAny( true ) ); } } else if( !bWasEnabled && mbIsPwdEnabled ) { uno::Reference< XFilePickerControlAccess > xCtrlAccess( mxFileDlg, UNO_QUERY ); if( mbPwdCheckBoxState ) - xCtrlAccess->setValue( ExtendedFilePickerElementIds::CHECKBOX_PASSWORD, 0, makeAny( sal_True ) ); + xCtrlAccess->setValue( ExtendedFilePickerElementIds::CHECKBOX_PASSWORD, 0, makeAny( true ) ); } else if( bWasEnabled && !mbIsPwdEnabled ) { @@ -556,7 +556,7 @@ void FileDialogHelper_Impl::enablePasswordBox( bool bInit ) Any aValue = xCtrlAccess->getValue( ExtendedFilePickerElementIds::CHECKBOX_PASSWORD, 0 ); bool bPassWord = false; mbPwdCheckBoxState = ( aValue >>= bPassWord ) && bPassWord; - xCtrlAccess->setValue( ExtendedFilePickerElementIds::CHECKBOX_PASSWORD, 0, makeAny( sal_False ) ); + xCtrlAccess->setValue( ExtendedFilePickerElementIds::CHECKBOX_PASSWORD, 0, makeAny( false ) ); } } @@ -1069,7 +1069,7 @@ FileDialogHelper_Impl::FileDialogHelper_Impl( // set multiselection mode if ( nFlags & SFXWB_MULTISELECTION ) - mxFileDlg->setMultiSelectionMode( sal_True ); + mxFileDlg->setMultiSelectionMode( true ); if (mbAddGraphicFilter) // generate graphic filter only on demand { @@ -1082,7 +1082,7 @@ FileDialogHelper_Impl::FileDialogHelper_Impl( mxFileDlg->setTitle( SfxResId( STR_SFX_EXPLORERFILE_EXPORT ).toString() ); try { css::uno::Reference < XFilePickerControlAccess > xCtrlAccess( mxFileDlg, UNO_QUERY_THROW ); - xCtrlAccess->enableControl( ExtendedFilePickerElementIds::LISTBOX_FILTER_SELECTOR, sal_True ); + xCtrlAccess->enableControl( ExtendedFilePickerElementIds::LISTBOX_FILTER_SELECTOR, true ); } catch( const Exception & ) { } } diff --git a/sfx2/source/dialog/mailmodel.cxx b/sfx2/source/dialog/mailmodel.cxx index e12c05f88866..3622c9fb7014 100644 --- a/sfx2/source/dialog/mailmodel.cxx +++ b/sfx2/source/dialog/mailmodel.cxx @@ -222,7 +222,7 @@ SfxMailModel::SaveResult SfxMailModel::ShowFilterOptionsDialog( { try { - xModifiable->setModified( sal_False ); + xModifiable->setModified( false ); } catch( css::beans::PropertyVetoException& ) { @@ -612,7 +612,7 @@ SfxMailModel::SaveResult SfxMailModel::SaveDocumentAsFormat( { try { - xModifiable->setModified( sal_False ); + xModifiable->setModified( false ); } catch( css::beans::PropertyVetoException& ) { diff --git a/sfx2/source/dialog/partwnd.cxx b/sfx2/source/dialog/partwnd.cxx index 964981ead00d..7c5f4fa87e31 100644 --- a/sfx2/source/dialog/partwnd.cxx +++ b/sfx2/source/dialog/partwnd.cxx @@ -114,7 +114,7 @@ SfxPartDockWnd_Impl::SfxPartDockWnd_Impl css::uno::Reference< css::beans::XPropertySet > xLMPropSet( xFrame->getLayoutManager(), css::uno::UNO_QUERY_THROW ); const OUString aAutomaticToolbars( "AutomaticToolbars" ); - xLMPropSet->setPropertyValue( aAutomaticToolbars, css::uno::Any( sal_False )); + xLMPropSet->setPropertyValue( aAutomaticToolbars, css::uno::Any( false )); } catch( css::uno::RuntimeException& ) { @@ -161,7 +161,7 @@ bool SfxPartDockWnd_Impl::QueryClose() { css::uno::Reference< css::frame::XController > xCtrl = xFrame->getController(); if( xCtrl.is() ) - bClose = xCtrl->suspend( sal_True ); + bClose = xCtrl->suspend( true ); } } |