diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-24 11:38:51 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-24 11:41:01 +0200 |
commit | 682b9b33c71066bbf703c22e9689367e7bd569b6 (patch) | |
tree | 98a123ad26a73f6635ff86fdf0d16cfc7f7c33d7 /sc/inc | |
parent | c09d0aa46ceaeb96869eae1a23a86040189472f4 (diff) |
loplugin:constantparam in sc
Change-Id: I8608a6cb47972e9b838cc5ea431863348758ded0
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/column.hxx | 4 | ||||
-rw-r--r-- | sc/inc/document.hxx | 12 | ||||
-rw-r--r-- | sc/inc/dpfilteredcache.hxx | 2 | ||||
-rw-r--r-- | sc/inc/drwlayer.hxx | 2 | ||||
-rw-r--r-- | sc/inc/progress.hxx | 2 | ||||
-rw-r--r-- | sc/inc/table.hxx | 8 | ||||
-rw-r--r-- | sc/inc/tokenarray.hxx | 2 |
7 files changed, 16 insertions, 16 deletions
diff --git a/sc/inc/column.hxx b/sc/inc/column.hxx index 38e49b64b006..aa1f4c1617d5 100644 --- a/sc/inc/column.hxx +++ b/sc/inc/column.hxx @@ -256,7 +256,7 @@ public: SCROW nStartRow, SCROW nEndRow, InsertDeleteFlags nDelFlag, bool bBroadcast = true, sc::ColumnSpanSet* pBroadcastSpans = nullptr ); - void DeleteRanges( const std::vector<sc::RowSpan>& rRanges, InsertDeleteFlags nDelFlag, bool bBroadcast ); + void DeleteRanges( const std::vector<sc::RowSpan>& rRanges, InsertDeleteFlags nDelFlag ); void CopyToClip( sc::CopyToClipContext& rCxt, SCROW nRow1, SCROW nRow2, ScColumn& rColumn ) const; @@ -450,7 +450,7 @@ public: ScEditDataArray* pDataArray = nullptr ); void SetPattern( SCROW nRow, const ScPatternAttr& rPatAttr, bool bPutToPool = false ); void SetPatternArea( SCROW nStartRow, SCROW nEndRow, - const ScPatternAttr& rPatAttr, bool bPutToPool = false ); + const ScPatternAttr& rPatAttr ); void ApplyPatternIfNumberformatIncompatible( const ScRange& rRange, const ScPatternAttr& rPattern, short nNewType ); diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index 6153a2b6d07a..15130a5e5415 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -684,7 +684,7 @@ public: SCTAB nPos, const OUString& rName, bool bExternalDocument = false, bool bUndoDeleteTab = false ); SC_DLLPUBLIC bool InsertTabs( SCTAB nPos, const std::vector<OUString>& rNames, - bool bExternalDocument = false, bool bNamesValid = false ); + bool bNamesValid = false ); SC_DLLPUBLIC bool DeleteTabs( SCTAB nTab, SCTAB nSheets ); SC_DLLPUBLIC bool DeleteTab( SCTAB nTab ); SC_DLLPUBLIC bool RenameTab( SCTAB nTab, const OUString& rName, @@ -1272,8 +1272,8 @@ public: void DeleteAreaTab(const ScRange& rRange, InsertDeleteFlags nDelFlag); void CopyToClip(const ScClipParam& rClipParam, ScDocument* pClipDoc, - const ScMarkData* pMarks = nullptr, bool bAllTabs = false, bool bKeepScenarioFlags = false, - bool bIncludeObjects = false, bool bCloneNoteCaptions = true, bool bUseRangeForVBA = false ); + const ScMarkData* pMarks, bool bKeepScenarioFlags, + bool bIncludeObjects ); /** * Copy only raw cell values to another document. Formula cells are @@ -1756,7 +1756,7 @@ public: std::vector<ScTypedStrData>& rStrings, bool& rHasDates); void GetDataEntries( - SCCOL nCol, SCROW nRow, SCTAB nTab, bool bCaseSens, + SCCOL nCol, SCROW nRow, SCTAB nTab, std::vector<ScTypedStrData>& rStrings, bool bLimit = false ); void GetFormulaEntries( ScTypedCaseStrSet& rStrings ); @@ -1778,7 +1778,7 @@ public: void ReplaceStyle(const SvxSearchItem& rSearchItem, SCCOL nCol, SCROW nRow, SCTAB nTab, - ScMarkData& rMark, bool bIsUndo); + ScMarkData& rMark); void InvalidateTextWidth( const OUString& rStyleName ); void InvalidateTextWidth( SCTAB nTab ); @@ -1937,7 +1937,7 @@ public: void PutInFormulaTree( ScFormulaCell* pCell ); void RemoveFromFormulaTree( ScFormulaCell* pCell ); - /** +/** * Calculate formula cells that are on the formula tree either partially, * or in full. * diff --git a/sc/inc/dpfilteredcache.hxx b/sc/inc/dpfilteredcache.hxx index 546625d69918..cce0595d69eb 100644 --- a/sc/inc/dpfilteredcache.hxx +++ b/sc/inc/dpfilteredcache.hxx @@ -125,7 +125,7 @@ public: that the data grid doesn't include the header row. Don't delete the returned object! */ const ScDPItemData* getCell(SCCOL nCol, SCROW nRow, bool bRepeatIfEmpty) const; - void getValue( ScDPValue& rVal, SCCOL nCol, SCROW nRow, bool bRepeatIfEmpty) const; + void getValue( ScDPValue& rVal, SCCOL nCol, SCROW nRow) const; OUString getFieldName(SCCOL nIndex) const; /** Get the unique entries for a field specified by index. The caller must diff --git a/sc/inc/drwlayer.hxx b/sc/inc/drwlayer.hxx index 6dec7b7c4a83..54951b506f36 100644 --- a/sc/inc/drwlayer.hxx +++ b/sc/inc/drwlayer.hxx @@ -121,7 +121,7 @@ public: void ScRemovePage( SCTAB nTab ); void ScRenamePage( SCTAB nTab, const OUString& rNewName ); void ScMovePage( sal_uInt16 nOldPos, sal_uInt16 nNewPos ); - void ScCopyPage( sal_uInt16 nOldPos, sal_uInt16 nNewPos, bool bSkipNotes = false ); + void ScCopyPage( sal_uInt16 nOldPos, sal_uInt16 nNewPos ); void ResetTab( SCTAB nStart, SCTAB nEnd ); ScDocument* GetDocument() const { return pDoc; } diff --git a/sc/inc/progress.hxx b/sc/inc/progress.hxx index 3fc2ba375ae7..8d1f9c59ae72 100644 --- a/sc/inc/progress.hxx +++ b/sc/inc/progress.hxx @@ -71,7 +71,7 @@ public: ScProgress( SfxObjectShell* pObjSh, const OUString& rText, - sal_uLong nRange, bool bAllDocs = false, + sal_uLong nRange, bool bWait = true ); ~ScProgress(); diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx index 31b277f9e2d8..6fac2cf05171 100644 --- a/sc/inc/table.hxx +++ b/sc/inc/table.hxx @@ -616,12 +616,12 @@ public: void ApplyPatternArea( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, const ScPatternAttr& rAttr, ScEditDataArray* pDataArray = nullptr ); - void SetPattern( const ScAddress& rPos, const ScPatternAttr& rAttr, bool bPutToPool = false ) + void SetPattern( const ScAddress& rPos, const ScPatternAttr& rAttr ) { if (ValidColRow(rPos.Col(),rPos.Row())) - aCol[rPos.Col()].SetPattern( rPos.Row(), rAttr, bPutToPool ); + aCol[rPos.Col()].SetPattern( rPos.Row(), rAttr, true/*bPutToPool*/ ); } - void SetPattern( SCCOL nCol, SCROW nRow, const ScPatternAttr& rAttr, bool bPutToPool = false ); + void SetPattern( SCCOL nCol, SCROW nRow, const ScPatternAttr& rAttr ); void ApplyPatternIfNumberformatIncompatible( const ScRange& rRange, const ScPatternAttr& rPattern, short nNewType ); void AddCondFormatData( const ScRangeList& rRange, sal_uInt32 nIndex ); @@ -643,7 +643,7 @@ public: double nPPTX, double nPPTY, const Fraction& rZoomX, const Fraction& rZoomY ); - bool IsStyleSheetUsed( const ScStyleSheet& rStyle, bool bGatherAllStyles ) const; + bool IsStyleSheetUsed( const ScStyleSheet& rStyle ) const; bool ApplyFlags( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, sal_Int16 nFlags ); bool RemoveFlags( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, sal_Int16 nFlags ); diff --git a/sc/inc/tokenarray.hxx b/sc/inc/tokenarray.hxx index ac3c332e5278..18fc6e59b73e 100644 --- a/sc/inc/tokenarray.hxx +++ b/sc/inc/tokenarray.hxx @@ -134,7 +134,7 @@ public: * Make all absolute references pointing to the copied range if the range is copied too * @param bCheckCopyArea should references pointing into the copy area be adjusted independently from being absolute, should be true only for copy&paste between documents */ - void AdjustAbsoluteRefs( const ScDocument* pOldDoc, const ScAddress& rOldPos, const ScAddress& rNewPos, bool bRangeName = false, bool bCheckCopyArea = false ); + void AdjustAbsoluteRefs( const ScDocument* pOldDoc, const ScAddress& rOldPos, const ScAddress& rNewPos, bool bCheckCopyArea = false ); /** When copying a sheet-local named expression, move sheet references that point to the originating sheet to point to the new sheet instead. |