summaryrefslogtreecommitdiff
path: root/sc/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-12-06 16:18:58 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-12-07 07:21:32 +0100
commitbe354a2abd27548405caf97fdbc814b5a6b06995 (patch)
treea044c734c912a9a194f380d31aabd679772916b2 /sc/inc
parentc947a25b3a785f8d43160671f79e3bb503dfb1ae (diff)
loplugin:constparams
Change-Id: Ia322ecf8f80b28c58ec33d17ca9607401a92534b Reviewed-on: https://gerrit.libreoffice.org/45959 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/colorscale.hxx4
-rw-r--r--sc/inc/column.hxx2
-rw-r--r--sc/inc/compare.hxx2
-rw-r--r--sc/inc/dptabres.hxx2
-rw-r--r--sc/inc/dputil.hxx2
-rw-r--r--sc/inc/drwlayer.hxx2
-rw-r--r--sc/inc/formulacell.hxx4
-rw-r--r--sc/inc/tokenarray.hxx4
8 files changed, 11 insertions, 11 deletions
diff --git a/sc/inc/colorscale.hxx b/sc/inc/colorscale.hxx
index 19f00d7087e8..0ed8a82d14e3 100644
--- a/sc/inc/colorscale.hxx
+++ b/sc/inc/colorscale.hxx
@@ -66,8 +66,8 @@ public:
formula::FormulaGrammar::Grammar eGrammar = formula::FormulaGrammar::GRAM_DEFAULT);
void UpdateReference( const sc::RefUpdateContext& rCxt );
- void UpdateInsertTab( sc::RefUpdateInsertTabContext& rCxt );
- void UpdateDeleteTab( sc::RefUpdateDeleteTabContext& rCxt );
+ void UpdateInsertTab( const sc::RefUpdateInsertTabContext& rCxt );
+ void UpdateDeleteTab( const sc::RefUpdateDeleteTabContext& rCxt );
void UpdateMoveTab( const sc::RefUpdateMoveTabContext& rCxt );
const ScTokenArray* GetFormula() const;
diff --git a/sc/inc/column.hxx b/sc/inc/column.hxx
index c9c55e85b92e..60dfd3edf1d6 100644
--- a/sc/inc/column.hxx
+++ b/sc/inc/column.hxx
@@ -323,7 +323,7 @@ public:
bool SetString(
SCROW nRow, SCTAB nTab, const OUString& rString, formula::FormulaGrammar::AddressConvention eConv,
- ScSetStringParam* pParam = nullptr );
+ const ScSetStringParam* pParam = nullptr );
void SetEditText( SCROW nRow, EditTextObject* pEditText );
void SetEditText( sc::ColumnBlockPosition& rBlockPos, SCROW nRow, EditTextObject* pEditText );
diff --git a/sc/inc/compare.hxx b/sc/inc/compare.hxx
index d67ba0027112..bdd86c1cdf54 100644
--- a/sc/inc/compare.hxx
+++ b/sc/inc/compare.hxx
@@ -69,7 +69,7 @@ private:
rComp.mbIgnoreCase.
*/
double CompareFunc( const Compare& rComp, CompareOptions* pOptions = nullptr );
-double CompareFunc( const Compare::Cell& rCell1, double fCell2, CompareOptions* pOptions );
+double CompareFunc( const Compare::Cell& rCell1, double fCell2, const CompareOptions* pOptions );
double CompareFunc( double fCell1, double fCell2 );
/**
diff --git a/sc/inc/dptabres.hxx b/sc/inc/dptabres.hxx
index a0f8048f82ce..97274c1d659b 100644
--- a/sc/inc/dptabres.hxx
+++ b/sc/inc/dptabres.hxx
@@ -520,7 +520,7 @@ private:
ScDPResultMember* FindMember( SCROW iData ) const;
ScDPResultMember* AddMember( const ScDPParentDimData& aData );
- ScDPResultMember* InsertMember( ScDPParentDimData* pMemberData );
+ ScDPResultMember* InsertMember( const ScDPParentDimData* pMemberData );
void InitWithMembers( LateInitParams& rParams,
const ::std::vector< SCROW >& pItemData,
size_t nPos,
diff --git a/sc/inc/dputil.hxx b/sc/inc/dputil.hxx
index aec2b19e9c10..3f44ba57e296 100644
--- a/sc/inc/dputil.hxx
+++ b/sc/inc/dputil.hxx
@@ -47,7 +47,7 @@ public:
static sal_Int32 getDatePartValue(
double fValue, const ScDPNumGroupInfo* pInfo, sal_Int32 nDatePart,
- SvNumberFormatter* pFormatter);
+ const SvNumberFormatter* pFormatter);
static OUString getDisplayedMeasureName(const OUString& rName, ScSubTotalFunc eFunc);
diff --git a/sc/inc/drwlayer.hxx b/sc/inc/drwlayer.hxx
index 8f0a1aa25132..3da85abe939a 100644
--- a/sc/inc/drwlayer.hxx
+++ b/sc/inc/drwlayer.hxx
@@ -201,7 +201,7 @@ public:
// Image-Map
static ScIMapInfo* GetIMapInfo( const SdrObject* pObj );
- static IMapObject* GetHitIMapObject( SdrObject* pObject,
+ static IMapObject* GetHitIMapObject( const SdrObject* pObject,
const Point& rWinPoint, const vcl::Window& rCmpWnd );
static ScMacroInfo* GetMacroInfo( SdrObject* pObj, bool bCreate = false );
diff --git a/sc/inc/formulacell.hxx b/sc/inc/formulacell.hxx
index e75416de8e56..cdb67a3e27fc 100644
--- a/sc/inc/formulacell.hxx
+++ b/sc/inc/formulacell.hxx
@@ -283,9 +283,9 @@ public:
void UpdateGrow( const ScRange& rArea, SCCOL nGrowX, SCROW nGrowY );
- void UpdateInsertTab( sc::RefUpdateInsertTabContext& rCxt );
+ void UpdateInsertTab( const sc::RefUpdateInsertTabContext& rCxt );
void UpdateInsertTabAbs(SCTAB nTable);
- void UpdateDeleteTab( sc::RefUpdateDeleteTabContext& rCxt );
+ void UpdateDeleteTab( const sc::RefUpdateDeleteTabContext& rCxt );
void UpdateMoveTab( const sc::RefUpdateMoveTabContext& rCxt, SCTAB nTabNo );
bool TestTabRefAbs(SCTAB nTable);
void UpdateCompile( bool bForceIfNameInUse );
diff --git a/sc/inc/tokenarray.hxx b/sc/inc/tokenarray.hxx
index 927b77bc5ffd..071497e75323 100644
--- a/sc/inc/tokenarray.hxx
+++ b/sc/inc/tokenarray.hxx
@@ -207,9 +207,9 @@ public:
*
* @return true if at least one reference has changed its sheet reference.
*/
- sc::RefUpdateResult AdjustReferenceOnDeletedTab( sc::RefUpdateDeleteTabContext& rCxt, const ScAddress& rOldPos );
+ sc::RefUpdateResult AdjustReferenceOnDeletedTab( const sc::RefUpdateDeleteTabContext& rCxt, const ScAddress& rOldPos );
- sc::RefUpdateResult AdjustReferenceOnInsertedTab( sc::RefUpdateInsertTabContext& rCxt, const ScAddress& rOldPos );
+ sc::RefUpdateResult AdjustReferenceOnInsertedTab( const sc::RefUpdateInsertTabContext& rCxt, const ScAddress& rOldPos );
sc::RefUpdateResult AdjustReferenceOnMovedTab( const sc::RefUpdateMoveTabContext& rCxt, const ScAddress& rOldPos );