diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-02-23 14:35:04 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-02-23 17:43:06 +0100 |
commit | 4b9ad812facbd9416d9658325791bad3ab48934d (patch) | |
tree | 69da14f9b8d1b5987a4b567fb793269ce3f886b9 /sc | |
parent | a3f83ecbeab33244b526ec68ca0f2034745a6371 (diff) |
loplugin:constantparam
Change-Id: Ieaee9a3e3ef4aa9bc390ddb198ee1718f635bcbf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111391
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/document.hxx | 2 | ||||
-rw-r--r-- | sc/inc/drwlayer.hxx | 2 | ||||
-rw-r--r-- | sc/source/core/data/documen2.cxx | 4 | ||||
-rw-r--r-- | sc/source/core/data/drwlayer.cxx | 6 |
4 files changed, 7 insertions, 7 deletions
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index 6d012c9b01ec..ae66e0a0fb8e 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -1459,7 +1459,7 @@ public: SC_DLLPUBLIC bool GetTableArea( SCTAB nTab, SCCOL& rEndCol, SCROW& rEndRow, bool bCalcHiddens = false) const; SC_DLLPUBLIC bool GetPrintArea( SCTAB nTab, SCCOL& rEndCol, SCROW& rEndRow, - bool bNotes = true, bool bCalcHiddens = false) const; + bool bNotes = true) const; SC_DLLPUBLIC bool GetPrintAreaHor( SCTAB nTab, SCROW nStartRow, SCROW nEndRow, SCCOL& rEndCol ) const; SC_DLLPUBLIC bool GetPrintAreaVer( SCTAB nTab, SCCOL nStartCol, SCCOL nEndCol, diff --git a/sc/inc/drwlayer.hxx b/sc/inc/drwlayer.hxx index 008e56f8b8c6..3e5119b8e65c 100644 --- a/sc/inc/drwlayer.hxx +++ b/sc/inc/drwlayer.hxx @@ -108,7 +108,7 @@ private: void MoveCells( SCTAB nTab, SCCOL nCol1,SCROW nRow1, SCCOL nCol2,SCROW nRow2, SCCOL nDx,SCROW nDy, bool bUpdateNoteCaptionPos ); - void ResizeLastRectFromAnchor( const SdrObject* pObj, ScDrawObjData& rData, bool bUseLogicRect, bool bNegativePage, bool bCanResize ); + void ResizeLastRectFromAnchor( const SdrObject* pObj, ScDrawObjData& rData, bool bNegativePage, bool bCanResize ); public: ScDrawLayer( ScDocument* pDocument, const OUString& rName ); diff --git a/sc/source/core/data/documen2.cxx b/sc/source/core/data/documen2.cxx index e49694224fd6..7ad53e33394f 100644 --- a/sc/source/core/data/documen2.cxx +++ b/sc/source/core/data/documen2.cxx @@ -571,11 +571,11 @@ const svl::SharedStringPool& ScDocument::GetSharedStringPool() const } bool ScDocument::GetPrintArea( SCTAB nTab, SCCOL& rEndCol, SCROW& rEndRow, - bool bNotes, bool bCalcHiddens) const + bool bNotes) const { if (ValidTab(nTab) && nTab < static_cast<SCTAB>(maTabs.size()) && maTabs[nTab]) { - bool bAny = maTabs[nTab]->GetPrintArea( rEndCol, rEndRow, bNotes, bCalcHiddens); + bool bAny = maTabs[nTab]->GetPrintArea( rEndCol, rEndRow, bNotes, /*bCalcHiddens*/false); if (mpDrawLayer) { ScRange aDrawRange(0,0,nTab, MaxCol(),MaxRow(),nTab); diff --git a/sc/source/core/data/drwlayer.cxx b/sc/source/core/data/drwlayer.cxx index 4ae406cceb9f..9729629514ef 100644 --- a/sc/source/core/data/drwlayer.cxx +++ b/sc/source/core/data/drwlayer.cxx @@ -742,9 +742,9 @@ void lcl_SetLogicRectFromAnchor(SdrObject* pObj, ScDrawObjData& rAnchor, ScDocum } // namespace void ScDrawLayer::ResizeLastRectFromAnchor(const SdrObject* pObj, ScDrawObjData& rData, - bool bUseLogicRect, bool bNegativePage, bool bCanResize) + bool bNegativePage, bool bCanResize) { - tools::Rectangle aRect = bUseLogicRect ? pObj->GetLogicRect() : pObj->GetSnapRect(); + tools::Rectangle aRect = pObj->GetSnapRect(); SCCOL nCol1 = rData.maStart.Col(); SCROW nRow1 = rData.maStart.Row(); SCTAB nTab1 = rData.maStart.Tab(); @@ -1168,7 +1168,7 @@ void ScDrawLayer::RecalcPos( SdrObject* pObj, ScDrawObjData& rData, bool bNegati bool bCanResize = bValid2 && !pObj->IsResizeProtect() && rData.mbResizeWithCell; // update anchor with snap rect - ResizeLastRectFromAnchor( pObj, rData, false, bNegativePage, bCanResize ); + ResizeLastRectFromAnchor( pObj, rData, bNegativePage, bCanResize ); ScDrawObjData& rNoRotatedAnchor = *GetNonRotatedObjData( pObj, true /*bCreate*/); |