diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-04 11:35:33 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-04 11:48:05 +0200 |
commit | 03614918c028e82df353308837864c6fc7ff992c (patch) | |
tree | 631bc863274856e739e9d15c05f302e87383e751 /sc/inc | |
parent | fb6c99f21e03afb85d00459ca1e1abb07e71d126 (diff) |
loplugin:unuseddefaultparam in sc
Change-Id: Id461fc600bec5fe372875c2dcf405997fcf9f0b4
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/address.hxx | 2 | ||||
-rw-r--r-- | sc/inc/column.hxx | 7 | ||||
-rw-r--r-- | sc/inc/dociter.hxx | 9 | ||||
-rw-r--r-- | sc/inc/document.hxx | 8 | ||||
-rw-r--r-- | sc/inc/dpoutput.hxx | 2 | ||||
-rw-r--r-- | sc/inc/editutil.hxx | 4 | ||||
-rw-r--r-- | sc/inc/filter.hxx | 3 | ||||
-rw-r--r-- | sc/inc/table.hxx | 4 |
8 files changed, 14 insertions, 25 deletions
diff --git a/sc/inc/address.hxx b/sc/inc/address.hxx index a7d79ac15652..0e545be5578f 100644 --- a/sc/inc/address.hxx +++ b/sc/inc/address.hxx @@ -323,7 +323,7 @@ public: inline size_t hash() const; /// "A1" or "$A$1" or R1C1 or R[1]C[1] - OUString GetColRowString( bool bAbsolute = false ) const; + OUString GetColRowString() const; }; inline void ScAddress::PutInOrder( ScAddress& rAddress ) diff --git a/sc/inc/column.hxx b/sc/inc/column.hxx index edef1809a867..d7a6aadd4f28 100644 --- a/sc/inc/column.hxx +++ b/sc/inc/column.hxx @@ -234,7 +234,7 @@ public: bool HasSelectionMatrixFragment(const ScMarkData& rMark) const; bool GetFirstVisibleAttr( SCROW& rFirstRow ) const; - bool GetLastVisibleAttr( SCROW& rLastRow, bool bFullFormattedArea = false ) const; + bool GetLastVisibleAttr( SCROW& rLastRow ) const; bool HasVisibleAttrIn( SCROW nStartRow, SCROW nEndRow ) const; bool IsVisibleAttrEqual( const ScColumn& rCol, SCROW nStartRow = 0, SCROW nEndRow = MAXROW ) const; @@ -346,7 +346,7 @@ public: svl::SharedString GetSharedString( SCROW nRow ) const; void SetRawString( SCROW nRow, const OUString& rStr ); - void SetRawString( SCROW nRow, const svl::SharedString& rStr, bool bBroadcast = true ); + void SetRawString( SCROW nRow, const svl::SharedString& rStr ); void SetRawString( sc::ColumnBlockPosition& rBlockPos, SCROW nRow, const svl::SharedString& rStr, bool bBroadcast = true ); void SetValue( SCROW nRow, double fVal ); void SetValues( SCROW nRow, const std::vector<double>& rVals ); @@ -517,8 +517,7 @@ public: bool GetNextSpellingCell(SCROW& nRow, bool bInSel, const ScMarkData& rData) const; void StartListeningFormulaCells( - sc::StartListeningContext& rStartCxt, sc::EndListeningContext& rEndCxt, SCROW nRow1, SCROW nRow2, - SCROW* pStartRow = nullptr ); + sc::StartListeningContext& rStartCxt, sc::EndListeningContext& rEndCxt, SCROW nRow1, SCROW nRow2 ); void EndListeningFormulaCells( sc::EndListeningContext& rCxt, SCROW nRow1, SCROW nRow2, diff --git a/sc/inc/dociter.hxx b/sc/inc/dociter.hxx index 3775f9ddf2d4..856d938f7d8a 100644 --- a/sc/inc/dociter.hxx +++ b/sc/inc/dociter.hxx @@ -351,12 +351,6 @@ public: row position of the found entry are returned, otherwise invalid. - @param bSearchForEqualAfterMismatch - Continue searching for an equal entry even if the - last entry matching the range was found, in case - the data is not sorted. Is always done if regular - expressions are involved. - The search does not stop when encountering a string and does not assume that no values follow anymore. If querying for a string a mismatch on the first @@ -368,8 +362,7 @@ public: iterator is not usable anymore except for obtaining the number format! */ - bool FindEqualOrSortedLastInRange( SCCOL& nFoundCol, - SCROW& nFoundRow, bool bSearchForEqualAfterMismatch = false ); + bool FindEqualOrSortedLastInRange( SCCOL& nFoundCol, SCROW& nFoundRow ); }; class ScDocAttrIterator // all attribute areas diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index 30a8d9fc744b..541a0cc2e0f9 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -1199,8 +1199,7 @@ public: SCROW nStartRow, SCSIZE nSize, ScDocument* pRefUndoDoc = nullptr, bool* pUndoOutline = nullptr, const ScMarkData* pTabMark = nullptr ); - SC_DLLPUBLIC void DeleteRow( const ScRange& rRange, - ScDocument* pRefUndoDoc = nullptr ); + SC_DLLPUBLIC void DeleteRow( const ScRange& rRange ); bool InsertCol( SCROW nStartRow, SCTAB nStartTab, SCROW nEndRow, SCTAB nEndTab, SCCOL nStartCol, SCSIZE nSize, ScDocument* pRefUndoDoc = nullptr, @@ -1211,8 +1210,7 @@ public: SCCOL nStartCol, SCSIZE nSize, ScDocument* pRefUndoDoc = nullptr, bool* pUndoOutline = nullptr, const ScMarkData* pTabMark = nullptr ); - void DeleteCol( const ScRange& rRange, - ScDocument* pRefUndoDoc = nullptr ); + void DeleteCol( const ScRange& rRange ); bool CanInsertRow( const ScRange& rRange ) const; bool CanInsertCol( const ScRange& rRange ) const; @@ -1615,7 +1613,7 @@ public: bool RowFiltered(SCROW nRow, SCTAB nTab, SCROW* pFirstRow = nullptr, SCROW* pLastRow = nullptr) const; bool HasFilteredRows(SCROW nStartRow, SCROW nEndRow, SCTAB nTab) const; - bool ColFiltered(SCCOL nCol, SCTAB nTab, SCCOL* pFirstCol = nullptr) const; + bool ColFiltered(SCCOL nCol, SCTAB nTab) const; SC_DLLPUBLIC void SetRowFiltered(SCROW nStartRow, SCROW nEndRow, SCTAB nTab, bool bFiltered); SCROW FirstNonFilteredRow(SCROW nStartRow, SCROW nEndRow, SCTAB nTab) const; SCROW LastNonFilteredRow(SCROW nStartRow, SCROW nEndRow, SCTAB nTab) const; diff --git a/sc/inc/dpoutput.hxx b/sc/inc/dpoutput.hxx index f759c64d5724..959dbc4eb379 100644 --- a/sc/inc/dpoutput.hxx +++ b/sc/inc/dpoutput.hxx @@ -109,7 +109,7 @@ public: void Output(); //! Refresh? ScRange GetOutputRange( sal_Int32 nRegionType = css::sheet::DataPilotOutputRangeType::WHOLE ); - ScRange GetOutputRange( sal_Int32 nRegionType = css::sheet::DataPilotOutputRangeType::WHOLE ) const; + ScRange GetOutputRange() const; long GetHeaderRows(); bool HasError(); // range overflow or exception from source diff --git a/sc/inc/editutil.hxx b/sc/inc/editutil.hxx index a34caebfda6e..340d579247a0 100644 --- a/sc/inc/editutil.hxx +++ b/sc/inc/editutil.hxx @@ -134,8 +134,8 @@ public: /// Creates a copy of SfxItemSet if bRememberCopy set void SetDefaults( const SfxItemSet& rDefaults, bool bRememberCopy = true ); - /// Becomes the owner of the SfxItemSet if bTakeOwnership set - void SetDefaults( SfxItemSet* pDefaults, bool bTakeOwnership = true ); + /// Becomes the owner of the SfxItemSet + void SetDefaults( SfxItemSet* pDefaults ); /// Set the item in the default ItemSet which is created /// if it doesn't exist yet. diff --git a/sc/inc/filter.hxx b/sc/inc/filter.hxx index 9f215f633621..4f93743eb0b6 100644 --- a/sc/inc/filter.hxx +++ b/sc/inc/filter.hxx @@ -104,8 +104,7 @@ class SAL_DLLPUBLIC_RTTI ScFormatFilterPlugin { // various export filters virtual FltError ScExportExcel5( SfxMedium&, ScDocument*, ExportFormatExcel eFormat, rtl_TextEncoding eDest ) = 0; virtual void ScExportDif( SvStream&, ScDocument*, const ScAddress& rOutPos, const rtl_TextEncoding eDest ) = 0; - virtual FltError ScExportDif( SvStream&, ScDocument*, const ScRange& rRange, const rtl_TextEncoding eDest, - sal_uInt32 nDifOption = SC_DIFOPT_EXCEL ) = 0; + virtual FltError ScExportDif( SvStream&, ScDocument*, const ScRange& rRange, const rtl_TextEncoding eDest ) = 0; virtual void ScExportHTML( SvStream&, const OUString& rBaseURL, ScDocument*, const ScRange& rRange, const rtl_TextEncoding eDest, bool bAll, const OUString& rStreamPath, OUString& rNonConvertibleChars, const OUString& rFilterOptions ) = 0; virtual void ScExportRTF( SvStream&, ScDocument*, const ScRange& rRange, const rtl_TextEncoding eDest ) = 0; diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx index 496378e92b93..95d3225c985e 100644 --- a/sc/inc/table.hxx +++ b/sc/inc/table.hxx @@ -449,7 +449,7 @@ public: void UndoToTable( sc::CopyToDocContext& rCxt, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, - InsertDeleteFlags nFlags, bool bMarked, ScTable* pDestTab, const ScMarkData* pMarkData = nullptr ); + InsertDeleteFlags nFlags, bool bMarked, ScTable* pDestTab ); void CopyConditionalFormat( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, SCsCOL nDx, SCsROW nDy, ScTable* pTable); @@ -711,7 +711,7 @@ public: void SetManualHeight( SCROW nStartRow, SCROW nEndRow, bool bManual ); sal_uInt16 GetColWidth( SCCOL nCol, bool bHiddenAsZero = true ) const; - sal_uLong GetColWidth( SCCOL nStartCol, SCCOL nEndCol, bool bHiddenAsZero = true ) const; + sal_uLong GetColWidth( SCCOL nStartCol, SCCOL nEndCol ) const; SC_DLLPUBLIC sal_uInt16 GetRowHeight( SCROW nRow, SCROW* pStartRow = nullptr, SCROW* pEndRow = nullptr, bool bHiddenAsZero = true ) const; sal_uLong GetRowHeight( SCROW nStartRow, SCROW nEndRow, bool bHiddenAsZero = true ) const; sal_uLong GetScaledRowHeight( SCROW nStartRow, SCROW nEndRow, double fScale ) const; |