From f803aae0f318f99eb435c8fe7fc095fcd966d5ce Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 9 Mar 2016 14:10:31 +0200 Subject: loplugin:constantparam in formula Change-Id: I18246d34d27f1b12dfd107166b31ef16d9632462 --- formula/source/ui/dlg/formula.cxx | 10 +++++----- formula/source/ui/dlg/parawin.cxx | 8 ++++---- formula/source/ui/dlg/parawin.hxx | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) (limited to 'formula/source') diff --git a/formula/source/ui/dlg/formula.cxx b/formula/source/ui/dlg/formula.cxx index 652ef510fd45..c60aca77246e 100644 --- a/formula/source/ui/dlg/formula.cxx +++ b/formula/source/ui/dlg/formula.cxx @@ -1102,7 +1102,7 @@ IMPL_LINK_NOARG_TYPED(FormulaDlg_Impl, DblClkHdl, FuncPage&, void) BtnHdl(m_pBtnBackward); } - pParaWin->SetEdFocus(0); + pParaWin->SetEdFocus(); m_pBtnForward->Enable(false); //@New } @@ -1756,9 +1756,9 @@ void FormulaModalDialog::RefInputStartAfter( RefEdit* pEdit, RefButton* pButton { m_pImpl->RefInputStartAfter( pEdit, pButton ); } -void FormulaModalDialog::RefInputDoneAfter( bool bForced ) +void FormulaModalDialog::RefInputDoneAfter() { - m_pImpl->RefInputDoneAfter( bForced ); + m_pImpl->RefInputDoneAfter( true/*bForced*/ ); } void FormulaModalDialog::SetFocusWin(vcl::Window *pWin,const OString& nUniqueId) @@ -1854,9 +1854,9 @@ void FormulaDlg::Update() m_pImpl->aIdle.Start(); } -void FormulaDlg::DoEnter(bool _bOk) +void FormulaDlg::DoEnter() { - m_pImpl->DoEnter(_bOk); + m_pImpl->DoEnter(false); } ::std::pair FormulaDlg::RefInputStartBefore( RefEdit* pEdit, RefButton* pButton ) { diff --git a/formula/source/ui/dlg/parawin.cxx b/formula/source/ui/dlg/parawin.cxx index 911684c1d750..1762796ce832 100644 --- a/formula/source/ui/dlg/parawin.cxx +++ b/formula/source/ui/dlg/parawin.cxx @@ -420,11 +420,11 @@ void ParaWin::ShowParaLine(sal_uInt16 no) aArgInput[no].Show(); } -void ParaWin::SetEdFocus(sal_uInt16 no) +void ParaWin::SetEdFocus() { - UpdateArgDesc(no); - if(no<4 && noGrabFocus(); + UpdateArgDesc(0); + if(0GrabFocus(); } diff --git a/formula/source/ui/dlg/parawin.hxx b/formula/source/ui/dlg/parawin.hxx index f21eef3c9eef..431b3521dbcf 100644 --- a/formula/source/ui/dlg/parawin.hxx +++ b/formula/source/ui/dlg/parawin.hxx @@ -143,7 +143,7 @@ public: void SetArgument(sal_uInt16 no, const OUString& aString); void SetArgumentFonts(const vcl::Font& aBoldFont,const vcl::Font& aLightFont); - void SetEdFocus(sal_uInt16 nEditLine); //Sichtbare Editzeilen + void SetEdFocus(); //Sichtbare Editzeilen sal_uInt16 GetSliderPos(); void SetSliderPos(sal_uInt16 nSliderPos); -- cgit