diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-17 12:43:20 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-03-18 06:01:25 +0000 |
commit | 9704207c386867d1859b06dd25232e06022965d9 (patch) | |
tree | 0a7b610b1fcfc2496455ba65ad67dcd4e5700999 /sc | |
parent | 6b84445e33cb13602a0da9ab92d382748bcbbd51 (diff) |
loplugin:constantparam in formula
Change-Id: I3adeed435b62ae60b5d0d4b763dceced5675cd85
Reviewed-on: https://gerrit.libreoffice.org/23330
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/compiler.hxx | 2 | ||||
-rw-r--r-- | sc/source/core/tool/compiler.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/formdlg/formula.cxx | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/sc/inc/compiler.hxx b/sc/inc/compiler.hxx index d18d3b587284..2af43e4561b8 100644 --- a/sc/inc/compiler.hxx +++ b/sc/inc/compiler.hxx @@ -452,7 +452,7 @@ private: virtual bool HandleDbData() override; virtual bool HandleTableRef() override; - virtual formula::FormulaTokenRef ExtendRangeReference( formula::FormulaToken & rTok1, formula::FormulaToken & rTok2, bool bReuseDoubleRef ) override; + virtual formula::FormulaTokenRef ExtendRangeReference( formula::FormulaToken & rTok1, formula::FormulaToken & rTok2 ) override; virtual void CreateStringFromExternal( OUStringBuffer& rBuffer, const formula::FormulaToken* pToken ) const override; virtual void CreateStringFromSingleRef( OUStringBuffer& rBuffer, const formula::FormulaToken* pToken ) const override; virtual void CreateStringFromDoubleRef( OUStringBuffer& rBuffer, const formula::FormulaToken* pToken ) const override; diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx index 2ea80345b11d..2f88dd930d55 100644 --- a/sc/source/core/tool/compiler.cxx +++ b/sc/source/core/tool/compiler.cxx @@ -4847,9 +4847,9 @@ sal_Unicode ScCompiler::GetNativeAddressSymbol( Convention::SpecialSymbolType eT return pConv->getSpecialSymbol(eType); } -FormulaTokenRef ScCompiler::ExtendRangeReference( FormulaToken & rTok1, FormulaToken & rTok2, bool bReuseDoubleRef ) +FormulaTokenRef ScCompiler::ExtendRangeReference( FormulaToken & rTok1, FormulaToken & rTok2 ) { - return extendRangeReference( rTok1, rTok2, aPos,bReuseDoubleRef ); + return extendRangeReference( rTok1, rTok2, aPos, true/*bReuseDoubleRef*/ ); } void ScCompiler::fillAddInToken(::std::vector< css::sheet::FormulaOpCodeMapEntry >& _rVec,bool _bIsEnglish) const diff --git a/sc/source/ui/formdlg/formula.cxx b/sc/source/ui/formdlg/formula.cxx index 085c7177f2a0..4f2aff561743 100644 --- a/sc/source/ui/formdlg/formula.cxx +++ b/sc/source/ui/formdlg/formula.cxx @@ -62,7 +62,7 @@ using namespace com::sun::star; ScFormulaDlg::ScFormulaDlg( SfxBindings* pB, SfxChildWindow* pCW, vcl::Window* pParent, ScViewData* pViewData,formula::IFunctionManager* _pFunctionMgr ) - : formula::FormulaDlg( pB, pCW, pParent, true,true,true, _pFunctionMgr,this) + : formula::FormulaDlg( pB, pCW, pParent, _pFunctionMgr,this) , m_aHelper(this,pB) { m_aHelper.SetWindow(this); |