diff options
author | Noel Grandin <noel@peralex.com> | 2015-08-12 15:10:10 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-08-14 11:11:07 +0200 |
commit | 371a535afbccd1cc405117ad5529fc980e041e68 (patch) | |
tree | eeb0b0af693b5e818c9b0b391f802871053b61d3 /fpicker | |
parent | fceee9237c583f8d95396845a1c1606000df26fb (diff) |
loplugin: defaultparams
Change-Id: I0538bbb2e121d8feeff03535cb327c957e03de1b
Diffstat (limited to 'fpicker')
-rw-r--r-- | fpicker/source/office/OfficeControlAccess.cxx | 2 | ||||
-rw-r--r-- | fpicker/source/office/OfficeFilePicker.cxx | 4 | ||||
-rw-r--r-- | fpicker/source/office/OfficeFolderPicker.cxx | 2 | ||||
-rw-r--r-- | fpicker/source/office/RemoteFilesDialog.cxx | 2 | ||||
-rw-r--r-- | fpicker/source/office/commonpicker.cxx | 4 | ||||
-rw-r--r-- | fpicker/source/office/iodlg.cxx | 6 |
6 files changed, 10 insertions, 10 deletions
diff --git a/fpicker/source/office/OfficeControlAccess.cxx b/fpicker/source/office/OfficeControlAccess.cxx index f2116e7ec79f..63cde88c4b4d 100644 --- a/fpicker/source/office/OfficeControlAccess.cxx +++ b/fpicker/source/office/OfficeControlAccess.cxx @@ -399,7 +399,7 @@ namespace svt { Any aRet; - Control* pControl = m_pFilePickerController->getControl( _nControlId, false ); + Control* pControl = m_pFilePickerController->getControl( _nControlId ); DBG_ASSERT( pControl, "OControlAccess::GetValue: don't have this control in the current mode!" ); if ( pControl ) { diff --git a/fpicker/source/office/OfficeFilePicker.cxx b/fpicker/source/office/OfficeFilePicker.cxx index 3e2d345f2d9f..f52cdfe112ac 100644 --- a/fpicker/source/office/OfficeFilePicker.cxx +++ b/fpicker/source/office/OfficeFilePicker.cxx @@ -449,7 +449,7 @@ sal_Int16 SvtFilePicker::implExecutePicker( ) prepareExecute(); - getDialog()->EnableAutocompletion( true ); + getDialog()->EnableAutocompletion(); // now we are ready to execute the dialog sal_Int16 nRet = getDialog()->Execute(); @@ -530,7 +530,7 @@ void SAL_CALL SvtFilePicker::startExecuteModal( const Reference< ::com::sun::sta m_xDlgClosedListener = xListener; prepareDialog(); prepareExecute(); - getDialog()->EnableAutocompletion( true ); + getDialog()->EnableAutocompletion(); getDialog()->StartExecuteModal( LINK( this, SvtFilePicker, DialogClosedHdl ) ); } diff --git a/fpicker/source/office/OfficeFolderPicker.cxx b/fpicker/source/office/OfficeFolderPicker.cxx index 33a3e53d2245..6fbb6424ec05 100644 --- a/fpicker/source/office/OfficeFolderPicker.cxx +++ b/fpicker/source/office/OfficeFolderPicker.cxx @@ -65,7 +65,7 @@ void SAL_CALL SvtFolderPicker::startExecuteModal( const Reference< ::com::sun::s m_xListener = xListener; prepareDialog(); prepareExecute(); - getDialog()->EnableAutocompletion( true ); + getDialog()->EnableAutocompletion(); getDialog()->StartExecuteModal( LINK( this, SvtFolderPicker, DialogClosedHdl ) ); } diff --git a/fpicker/source/office/RemoteFilesDialog.cxx b/fpicker/source/office/RemoteFilesDialog.cxx index 98ef36f43cac..cce10e66d1c0 100644 --- a/fpicker/source/office/RemoteFilesDialog.cxx +++ b/fpicker/source/office/RemoteFilesDialog.cxx @@ -1102,7 +1102,7 @@ IMPL_LINK_NOARG ( RemoteFilesDialog, CancelHdl ) } else { - EndDialog( RET_CANCEL ); + EndDialog(); } return 1; } diff --git a/fpicker/source/office/commonpicker.cxx b/fpicker/source/office/commonpicker.cxx index 804850696577..451231e362e9 100644 --- a/fpicker/source/office/commonpicker.cxx +++ b/fpicker/source/office/commonpicker.cxx @@ -120,7 +120,7 @@ namespace svt { ::osl::MutexGuard aOwnGuard( m_aMutex ); if ( m_bExecuting && m_pDlg ) - m_pDlg->EndDialog( RET_CANCEL ); + m_pDlg->EndDialog(); } m_pDlg.disposeAndClear(); @@ -404,7 +404,7 @@ namespace svt OSL_ENSURE( getDialog(), "OCommonPicker::OnCancelPicker: executing, but no dialog!" ); if ( getDialog() ) - getDialog()->EndDialog( RET_CANCEL ); + getDialog()->EndDialog(); return 0L; } diff --git a/fpicker/source/office/iodlg.cxx b/fpicker/source/office/iodlg.cxx index 6d1e1a1fc106..123f96f39d4b 100644 --- a/fpicker/source/office/iodlg.cxx +++ b/fpicker/source/office/iodlg.cxx @@ -823,7 +823,7 @@ IMPL_LINK_NOARG(SvtFileDialog, CancelHdl_Impl) } else { - EndDialog( RET_CANCEL ); + EndDialog(); } return 1L; } @@ -2502,7 +2502,7 @@ Control* SvtFileDialog::getControl( sal_Int16 _nControlId, bool _bLabelControl ) void SvtFileDialog::enableControl( sal_Int16 _nControlId, bool _bEnable ) { - Control* pControl = getControl( _nControlId, false ); + Control* pControl = getControl( _nControlId ); if ( pControl ) EnableControl( pControl, _bEnable ); Control* pLabel = getControl( _nControlId, true ); @@ -2550,7 +2550,7 @@ void SvtFileDialog::AddControls_Impl( ) if ( _nExtraBits & SFX_EXTRA_AUTOEXTENSION ) { _pImp->_pCbAutoExtension->SetText( SvtResId( STR_SVT_FILEPICKER_AUTO_EXTENSION ) ); - _pImp->_pCbAutoExtension->Check( true ); + _pImp->_pCbAutoExtension->Check(); _pImp->_pCbAutoExtension->SetClickHdl( LINK( this, SvtFileDialog, AutoExtensionHdl_Impl ) ); _pImp->_pCbAutoExtension->Show(); } |