diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-31 10:51:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-31 12:09:24 +0200 |
commit | b1a1baa66a8eb0553df87769d48e3cc7e533a1d8 (patch) | |
tree | fe77a0f819887add2fbe03d4cc7a5b9d88cc104e /include/formula | |
parent | 4732e65646016087d772adb3a0b55c166b35356d (diff) |
loplugin:constparams in formula,xmlhelp
Change-Id: I1c987d991a5b292df327d1bb921099233b5531fe
Reviewed-on: https://gerrit.libreoffice.org/40584
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/formula')
-rw-r--r-- | include/formula/FormulaCompiler.hxx | 6 | ||||
-rw-r--r-- | include/formula/formula.hxx | 4 | ||||
-rw-r--r-- | include/formula/token.hxx | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/include/formula/FormulaCompiler.hxx b/include/formula/FormulaCompiler.hxx index ef1c058eaa4e..64e727bbab61 100644 --- a/include/formula/FormulaCompiler.hxx +++ b/include/formula/FormulaCompiler.hxx @@ -368,9 +368,9 @@ private: set ForceArray at rCurr if so. Set nParam+1 as 1-based nCurrentFactorParam for subsequent ForceArrayOperator() calls. */ - void CheckSetForceArrayParameter( FormulaTokenRef& rCurr, sal_uInt8 nParam ); + void CheckSetForceArrayParameter( FormulaTokenRef const & rCurr, sal_uInt8 nParam ); - void ForceArrayOperator( FormulaTokenRef& rCurr ); + void ForceArrayOperator( FormulaTokenRef const & rCurr ); class CurrentFactor { @@ -391,7 +391,7 @@ private: pCompiler->nCurrentFactorParam = nPrevParam; } // yes, this operator= may modify the RValue - void operator=( FormulaTokenRef& r ) + void operator=( FormulaTokenRef const & r ) { pCompiler->ForceArrayOperator( r ); pCompiler->pCurrentFactorToken = r; diff --git a/include/formula/formula.hxx b/include/formula/formula.hxx index e88cd775ca57..199056ea7b99 100644 --- a/include/formula/formula.hxx +++ b/include/formula/formula.hxx @@ -64,7 +64,7 @@ class FORMULA_DLLPUBLIC FormulaModalDialog : public ModalDialog, public formul friend class FormulaDlg_Impl; public: FormulaModalDialog( vcl::Window* pParent - ,IFunctionManager* _pFunctionMgr + ,IFunctionManager const * _pFunctionMgr ,IControlReferenceHandler* _pDlg ); virtual ~FormulaModalDialog() override; virtual void dispose() override; @@ -95,7 +95,7 @@ public: FormulaDlg( SfxBindings* pB , SfxChildWindow* pCW , vcl::Window* pParent - , IFunctionManager* _pFunctionMgr + , IFunctionManager const * _pFunctionMgr , IControlReferenceHandler* _pDlg ); virtual ~FormulaDlg() override; virtual void dispose() override; diff --git a/include/formula/token.hxx b/include/formula/token.hxx index 99e99bf374ca..9b06ae48182c 100644 --- a/include/formula/token.hxx +++ b/include/formula/token.hxx @@ -423,7 +423,7 @@ private: pJump; ParamClass eInForceArray; public: - FormulaJumpToken( OpCode e, short* p ) : + FormulaJumpToken( OpCode e, short const * p ) : FormulaToken( formula::svJump , e), eInForceArray( ParamClass::Unknown) { |