diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-12 10:04:35 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-17 08:13:06 +0200 |
commit | b9f9f8253f89151beed27499e6db5c11a7d81eba (patch) | |
tree | 67e1506ecce80867e8a7fbf07ffe2ac5c1f6ad11 /sc/inc | |
parent | 0a910746b19f10f184f6ff8f41c868994a472ca9 (diff) |
loplugin:constparams
Change-Id: I3d1b88dbd0ff73fddc08d52f50e0efb42daab89b
Reviewed-on: https://gerrit.libreoffice.org/52756
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/document.hxx | 2 | ||||
-rw-r--r-- | sc/inc/drwlayer.hxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index 69302890958c..e62c2e47f7c2 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -615,7 +615,7 @@ public: SC_DLLPUBLIC ScRangeName* GetRangeName() const; void SetRangeName(SCTAB nTab, std::unique_ptr<ScRangeName> pNew); void SetRangeName( std::unique_ptr<ScRangeName> pNewRangeName ); - bool IsAddressInRangeName( RangeNameScope eScope, ScAddress& rAddress); + bool IsAddressInRangeName( RangeNameScope eScope, const ScAddress& rAddress); /** Find a named expression / range name in either global or a local scope. @param nTab diff --git a/sc/inc/drwlayer.hxx b/sc/inc/drwlayer.hxx index 3d9e2b72b685..d71a408905b7 100644 --- a/sc/inc/drwlayer.hxx +++ b/sc/inc/drwlayer.hxx @@ -186,8 +186,8 @@ public: static ScAnchorType GetAnchorType( const SdrObject& ); std::vector<SdrObject*> GetObjectsAnchoredToRows(SCTAB nTab, SCROW nStartRow, SCROW nEndRow); std::map<SCROW, std::vector<SdrObject*>> GetObjectsAnchoredToRange(SCTAB nTab, SCCOL nCol, SCROW nStartRow, SCROW nEndRow); - bool HasObjectsAnchoredInRange(ScRange& rRange); - void MoveObject(SdrObject* pObj, ScAddress& rNewPosition); + bool HasObjectsAnchoredInRange(const ScRange& rRange); + void MoveObject(SdrObject* pObj, const ScAddress& rNewPosition); // positions for detektive lines static ScDrawObjData* GetObjData( SdrObject* pObj, bool bCreate=false ); |