Kaydet (Commit) 371a535a authored tarafından Noel Grandin's avatar Noel Grandin

loplugin: defaultparams

Change-Id: I0538bbb2e121d8feeff03535cb327c957e03de1b
üst fceee923
......@@ -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 )
{
......
......@@ -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 ) );
}
......
......@@ -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 ) );
}
......
......@@ -1102,7 +1102,7 @@ IMPL_LINK_NOARG ( RemoteFilesDialog, CancelHdl )
}
else
{
EndDialog( RET_CANCEL );
EndDialog();
}
return 1;
}
......
......@@ -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;
}
......
......@@ -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();
}
......
......@@ -186,7 +186,7 @@ css::uno::Reference< css::uno::XInterface > ServiceHandler::implts_dispatch( con
OUString sServiceName;
OUString sArguments;
sal_Int32 nArgStart = sServiceAndArguments.indexOf('?',0);
sal_Int32 nArgStart = sServiceAndArguments.indexOf('?');
if (nArgStart!=-1)
{
sServiceName = sServiceAndArguments.copy(0,nArgStart);
......
......@@ -144,7 +144,7 @@ void HeaderMenuController::fillPopupMenu( const Reference< ::com::sun::star::fra
pVCLPopupMenu->SetItemCommand( nId, aCommand );
if ( bHeaderIsOn )
pVCLPopupMenu->CheckItem( nId, true );
pVCLPopupMenu->CheckItem( nId );
++nId;
// Check if all entries have the same state
......
......@@ -217,7 +217,7 @@ void LanguageSelectionMenuController::fillPopupMenu( Reference< css::awt::XPopup
if (rStr == m_aCurLang && eMode == MODE_SetLanguageSelectionMenu )
{
//make a sign for the current language
pPopupMenu->CheckItem( nItemId, true );
pPopupMenu->CheckItem( nItemId );
}
++nItemId;
}
......
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