diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-23 12:22:26 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-24 07:56:57 +0100 |
commit | 945a119675788f7c8f0a133ac0271f9340c1653a (patch) | |
tree | 36b8ec346d009628b22922e510ba19fd2ece4f58 /sc/inc | |
parent | 7b7c388fe402e14486664e36eeb6c1f0fe1e02b9 (diff) |
loplugin:constparams
Change-Id: I7c695073d9a9d3b7a641d6eb9fe01a47d8c3a504
Reviewed-on: https://gerrit.libreoffice.org/48392
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-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/table.hxx | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index d8a47d600e19..77ad1046294a 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -1029,9 +1029,9 @@ public: // return TRUE = number format is set SC_DLLPUBLIC bool SetString( SCCOL nCol, SCROW nRow, SCTAB nTab, const OUString& rString, - ScSetStringParam* pParam = nullptr ); + const ScSetStringParam * pParam = nullptr ); SC_DLLPUBLIC bool SetString( const ScAddress& rPos, const OUString& rString, - ScSetStringParam* pParam = nullptr ); + const ScSetStringParam* pParam = nullptr ); /** * This method manages the lifecycle of the passed edit text object. When diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx index ac1b6f406fca..9698b4fbc462 100644 --- a/sc/inc/table.hxx +++ b/sc/inc/table.hxx @@ -406,7 +406,7 @@ public: bool IsBlockEmpty( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, bool bIgnoreNotes ) const; bool SetString( SCCOL nCol, SCROW nRow, SCTAB nTab, const OUString& rString, - ScSetStringParam* pParam = nullptr ); + const ScSetStringParam * pParam = nullptr ); bool SetEditText( SCCOL nCol, SCROW nRow, EditTextObject* pEditText ); void SetEditText( SCCOL nCol, SCROW nRow, const EditTextObject& rEditText, const SfxItemPool* pEditPool ); @@ -505,7 +505,7 @@ public: sc::CopyFromClipContext& rCxt, const ScTable& rClipTab, sc::ColumnSpanSet& rBroadcastSpans ); void CopyOneCellFromClip( - sc::CopyFromClipContext& rCxt, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, SCROW nSrcRow, ScTable* pSrcTab ); + sc::CopyFromClipContext& rCxt, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, SCROW nSrcRow, const ScTable* pSrcTab ); void CopyFromClip( sc::CopyFromClipContext& rCxt, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, @@ -531,7 +531,7 @@ public: InsertDeleteFlags nFlags, bool bMarked, ScTable* pDestTab ); void CopyConditionalFormat( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, - SCCOL nDx, SCROW nDy, ScTable* pTable); + SCCOL nDx, SCROW nDy, const ScTable* pTable); void TransposeClip( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, ScTable* pTransClip, InsertDeleteFlags nFlags, bool bAsLink ); @@ -1077,11 +1077,11 @@ private: void FillSeriesSimple( const ScCellValue& rSrcCell, SCCOLROW& rInner, SCCOLROW nIMin, SCCOLROW nIMax, - SCCOLROW& rCol, SCCOLROW& rRow, bool bVertical, ScProgress* pProgress, sal_uLong& rProgress ); + const SCCOLROW& rCol, const SCCOLROW& rRow, bool bVertical, ScProgress* pProgress, sal_uLong& rProgress ); void FillAutoSimple( SCCOLROW nISrcStart, SCCOLROW nISrcEnd, SCCOLROW nIStart, SCCOLROW nIEnd, - SCCOLROW& rInner, SCCOLROW& rCol, SCCOLROW& rRow, + SCCOLROW& rInner, const SCCOLROW& rCol, const SCCOLROW& rRow, sal_uLong nActFormCnt, sal_uLong nMaxFormCnt, bool bHasFiltered, bool bVertical, bool bPositive, ScProgress* pProgress, sal_uLong& rProgress ); |