diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-01-24 09:28:53 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-01-24 10:03:29 +0100 |
commit | 399ef5c1a1af6ded3cd650b3012d5990e5015365 (patch) | |
tree | b5506080a97ea0ea731bf49f6464b3e5fcd2e217 /sc/inc | |
parent | cf693b02159982bbcbbd13b564a81227fbba78cf (diff) |
loplugin:constparams in sc
Change-Id: Ie211eea01eaceb718f701d3fdbb6253700d14e5e
Reviewed-on: https://gerrit.libreoffice.org/66831
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/document.hxx | 4 | ||||
-rw-r--r-- | sc/inc/scmatrix.hxx | 18 |
2 files changed, 11 insertions, 11 deletions
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index 7ff9ed357616..4e19792f2a2e 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -911,7 +911,7 @@ public: SC_DLLPUBLIC sal_uLong TransferTab(ScDocument* pSrcDoc, SCTAB nSrcPos, SCTAB nDestPos, bool bInsertNew = true, bool bResultsOnly = false ); - SC_DLLPUBLIC void TransferDrawPage(ScDocument* pSrcDoc, SCTAB nSrcPos, SCTAB nDestPos); + SC_DLLPUBLIC void TransferDrawPage(const ScDocument* pSrcDoc, SCTAB nSrcPos, SCTAB nDestPos); SC_DLLPUBLIC void SetVisible( SCTAB nTab, bool bVisible ); SC_DLLPUBLIC bool IsVisible( SCTAB nTab ) const; bool IsStreamValid( SCTAB nTab ) const; @@ -1325,7 +1325,7 @@ public: void DelayFormulaGrouping( bool delay ); bool IsDelayedFormulaGrouping() const { return pDelayedFormulaGrouping.get() != nullptr; } /// To be used only by SharedFormulaUtil::joinFormulaCells(). - void AddDelayedFormulaGroupingCell( ScFormulaCell* cell ); + void AddDelayedFormulaGroupingCell( const ScFormulaCell* cell ); FormulaError GetErrCode( const ScAddress& ) const; diff --git a/sc/inc/scmatrix.hxx b/sc/inc/scmatrix.hxx index 2538ac2d4c27..3856eef9aaef 100644 --- a/sc/inc/scmatrix.hxx +++ b/sc/inc/scmatrix.hxx @@ -350,8 +350,8 @@ public: /// @return <TRUE/> if entire matrix is numeric, including booleans, with no strings or empties bool IsNumeric() const ; - void MatTrans( ScMatrix& mRes) const ; - void MatCopy ( ScMatrix& mRes) const ; + void MatTrans( const ScMatrix& mRes) const ; + void MatCopy ( const ScMatrix& mRes) const ; // Convert ScInterpreter::CompareMat values (-1,0,1) to boolean values void CompareEqual() ; @@ -391,13 +391,13 @@ public: void GetDoubleArray( std::vector<double>& rArray, bool bEmptyAsZero = true ) const ; void MergeDoubleArrayMultiply( std::vector<double>& rArray ) const ; - void NotOp(ScMatrix& rMat) ; - void NegOp(ScMatrix& rMat) ; - void AddOp(double fVal, ScMatrix& rMat) ; - void SubOp(bool bFlag, double fVal, ScMatrix& rMat) ; - void MulOp(double fVal, ScMatrix& rMat) ; - void DivOp(bool bFlag, double fVal, ScMatrix& rMat) ; - void PowOp(bool bFlag, double fVal, ScMatrix& rMat) ; + void NotOp(const ScMatrix& rMat) ; + void NegOp(const ScMatrix& rMat) ; + void AddOp(double fVal, const ScMatrix& rMat) ; + void SubOp(bool bFlag, double fVal, const ScMatrix& rMat) ; + void MulOp(double fVal, const ScMatrix& rMat) ; + void DivOp(bool bFlag, double fVal, const ScMatrix& rMat) ; + void PowOp(bool bFlag, double fVal, const ScMatrix& rMat) ; std::vector<ScMatrix::IterateResult> Collect(const std::vector<sc::op::Op>& aOp) ; |