diff options
author | Noel Grandin <noel@peralex.com> | 2016-08-29 08:50:28 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-08-29 08:41:53 +0000 |
commit | 86c0ce4d4637142b939ebaeb79c6bd35e49c1082 (patch) | |
tree | 92db4fc6a8b0e409963e4422d307327274b41931 /sc/inc | |
parent | 8f96ab602a9e7cad1215abb693f33824a7b37679 (diff) |
loplugin:countusersofdefaultparams
Change-Id: I26f46ddac3d7d810ebfa1c3e7f1a77427369828e
Reviewed-on: https://gerrit.libreoffice.org/28451
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/address.hxx | 14 | ||||
-rw-r--r-- | sc/inc/chartlis.hxx | 4 | ||||
-rw-r--r-- | sc/inc/chgtrack.hxx | 4 | ||||
-rw-r--r-- | sc/inc/colorscale.hxx | 6 | ||||
-rw-r--r-- | sc/inc/column.hxx | 16 | ||||
-rw-r--r-- | sc/inc/compare.hxx | 2 | ||||
-rw-r--r-- | sc/inc/compiler.hxx | 2 | ||||
-rw-r--r-- | sc/inc/conditio.hxx | 8 | ||||
-rw-r--r-- | sc/inc/document.hxx | 24 | ||||
-rw-r--r-- | sc/inc/docuno.hxx | 3 | ||||
-rw-r--r-- | sc/inc/drwlayer.hxx | 6 | ||||
-rw-r--r-- | sc/inc/filter.hxx | 6 | ||||
-rw-r--r-- | sc/inc/formulacell.hxx | 4 | ||||
-rw-r--r-- | sc/inc/global.hxx | 6 | ||||
-rw-r--r-- | sc/inc/patattr.hxx | 2 | ||||
-rw-r--r-- | sc/inc/postit.hxx | 2 | ||||
-rw-r--r-- | sc/inc/rangelst.hxx | 4 | ||||
-rw-r--r-- | sc/inc/rangenam.hxx | 8 | ||||
-rw-r--r-- | sc/inc/rangeutl.hxx | 10 | ||||
-rw-r--r-- | sc/inc/scabstdlg.hxx | 22 | ||||
-rw-r--r-- | sc/inc/scmatrix.hxx | 6 | ||||
-rw-r--r-- | sc/inc/stringutil.hxx | 2 | ||||
-rw-r--r-- | sc/inc/table.hxx | 14 | ||||
-rw-r--r-- | sc/inc/tabprotection.hxx | 6 | ||||
-rw-r--r-- | sc/inc/tokenarray.hxx | 2 | ||||
-rw-r--r-- | sc/inc/viewuno.hxx | 2 |
26 files changed, 92 insertions, 93 deletions
diff --git a/sc/inc/address.hxx b/sc/inc/address.hxx index 95bc9a489659..3d578445e76c 100644 --- a/sc/inc/address.hxx +++ b/sc/inc/address.hxx @@ -322,11 +322,11 @@ public: sal_Int32* pSheetEndPos = nullptr, const OUString* pErrRef = nullptr ); - SC_DLLPUBLIC void Format( OStringBuffer& r, ScRefFlags nFlags = ScRefFlags::ZERO, + SC_DLLPUBLIC void Format( OStringBuffer& r, ScRefFlags nFlags, const ScDocument* pDocument = nullptr, const Details& rDetails = detailsOOOa1) const; - SC_DLLPUBLIC OUString Format( ScRefFlags nFlags = ScRefFlags::ZERO, + SC_DLLPUBLIC OUString Format( ScRefFlags nFlags, const ScDocument* pDocument = nullptr, const Details& rDetails = detailsOOOa1) const; @@ -507,11 +507,11 @@ public: const css::uno::Sequence<css::sheet::ExternalLinkInfo>* pExternalLinks = nullptr, const OUString* pErrRef = nullptr ); - SC_DLLPUBLIC ScRefFlags ParseAny( const OUString&, ScDocument* = nullptr, + SC_DLLPUBLIC ScRefFlags ParseAny( const OUString&, ScDocument*, const ScAddress::Details& rDetails = ScAddress::detailsOOOa1 ); - SC_DLLPUBLIC ScRefFlags ParseCols( const OUString&, ScDocument* = nullptr, + SC_DLLPUBLIC ScRefFlags ParseCols( const OUString&, ScDocument*, const ScAddress::Details& rDetails = ScAddress::detailsOOOa1 ); - SC_DLLPUBLIC void ParseRows( const OUString&, ScDocument* = nullptr, + SC_DLLPUBLIC void ParseRows( const OUString&, ScDocument*, const ScAddress::Details& rDetails = ScAddress::detailsOOOa1 ); /** Parse an Excel style reference up to and including the sheet name @@ -852,13 +852,13 @@ template< typename T > void PutInOrder( T& nStart, T& nEnd ) bool ConvertSingleRef( ScDocument* pDocument, const OUString& rRefString, SCTAB nDefTab, ScRefAddress& rRefAddress, - const ScAddress::Details& rDetails = ScAddress::detailsOOOa1, + const ScAddress::Details& rDetails, ScAddress::ExternalInfo* pExtInfo = nullptr ); bool ConvertDoubleRef( ScDocument* pDocument, const OUString& rRefString, SCTAB nDefTab, ScRefAddress& rStartRefAddress, ScRefAddress& rEndRefAddress, - const ScAddress::Details& rDetails = ScAddress::detailsOOOa1, + const ScAddress::Details& rDetails, ScAddress::ExternalInfo* pExtInfo = nullptr ); /// append alpha representation of column to buffer diff --git a/sc/inc/chartlis.hxx b/sc/inc/chartlis.hxx index d66fb33401b6..4b48f5b519ff 100644 --- a/sc/inc/chartlis.hxx +++ b/sc/inc/chartlis.hxx @@ -94,7 +94,7 @@ public: void StartListeningTo(); void EndListeningTo(); void ChangeListening( const ScRangeListRef& rRangeListRef, - bool bDirty = false ); + bool bDirty ); void Update(); ScRangeListRef GetRangeList() const; void SetRangeList( const ScRangeListRef& rNew ); @@ -184,7 +184,7 @@ public: void UpdateDirtyCharts(); void SetDirty(); void SetDiffDirty( const ScChartListenerCollection&, - bool bSetChartRangeLists = false ); + bool bSetChartRangeLists ); void SetRangeDirty( const ScRange& rRange ); // for example rows/columns diff --git a/sc/inc/chgtrack.hxx b/sc/inc/chgtrack.hxx index 94aa56d66e3f..c8977ab173af 100644 --- a/sc/inc/chgtrack.hxx +++ b/sc/inc/chgtrack.hxx @@ -1114,8 +1114,8 @@ public: // adjust references for MergeDocument //! may only be used in a temporary opened document. //! the Track (?) is unclean afterwards - void MergePrepare( ScChangeAction* pFirstMerge, bool bShared = false ); - void MergeOwn( ScChangeAction* pAct, sal_uLong nFirstMerge, bool bShared = false ); + void MergePrepare( ScChangeAction* pFirstMerge, bool bShared ); + void MergeOwn( ScChangeAction* pAct, sal_uLong nFirstMerge, bool bShared ); static bool MergeIgnore( const ScChangeAction&, sal_uLong nFirstMerge ); // This comment was already really strange in German. diff --git a/sc/inc/colorscale.hxx b/sc/inc/colorscale.hxx index cbe45b4ee876..5c20633aad3f 100644 --- a/sc/inc/colorscale.hxx +++ b/sc/inc/colorscale.hxx @@ -253,7 +253,7 @@ public: ScColorScaleFormat(ScDocument* pDoc); ScColorScaleFormat(ScDocument* pDoc, const ScColorScaleFormat& rFormat); virtual ~ScColorScaleFormat(); - virtual ScColorFormat* Clone(ScDocument* pDoc = nullptr) const override; + virtual ScColorFormat* Clone(ScDocument* pDoc) const override; Color* GetColor(const ScAddress& rAddr) const; void AddEntry(ScColorScaleEntry* pEntry); @@ -286,7 +286,7 @@ class SC_DLLPUBLIC ScDataBarFormat : public ScColorFormat public: ScDataBarFormat(ScDocument* pDoc); ScDataBarFormat(ScDocument* pDoc, const ScDataBarFormat& rFormat); - virtual ScColorFormat* Clone(ScDocument* pDoc = nullptr) const override; + virtual ScColorFormat* Clone(ScDocument* pDoc) const override; ScDataBarInfo* GetDataBarInfo(const ScAddress& rAddr) const; @@ -346,7 +346,7 @@ public: ScIconSetFormat(ScDocument* pDoc); ScIconSetFormat(ScDocument* pDoc, const ScIconSetFormat& rFormat); - virtual ScColorFormat* Clone(ScDocument* pDoc = nullptr) const override; + virtual ScColorFormat* Clone(ScDocument* pDoc) const override; ScIconSetInfo* GetIconSetInfo(const ScAddress& rAddr) const; diff --git a/sc/inc/column.hxx b/sc/inc/column.hxx index bb7a2b91b603..35c737d40882 100644 --- a/sc/inc/column.hxx +++ b/sc/inc/column.hxx @@ -257,7 +257,7 @@ public: * @param pGroupPos when non-NULL, stores the top position of formula * group that's been merged as a result of row deletion. */ - void DeleteRow( SCROW nStartRow, SCSIZE nSize, std::vector<ScAddress>* pGroupPos = nullptr ); + void DeleteRow( SCROW nStartRow, SCSIZE nSize, std::vector<ScAddress>* pGroupPos ); void DeleteArea( SCROW nStartRow, SCROW nEndRow, InsertDeleteFlags nDelFlag, @@ -416,7 +416,7 @@ public: * @return true if reference of at least one formula cell has been * updated, false otherwise. */ - bool UpdateReference( sc::RefUpdateContext& rCxt, ScDocument* pUndoDoc = nullptr ); + bool UpdateReference( sc::RefUpdateContext& rCxt, ScDocument* pUndoDoc ); void UpdateInsertTab( sc::RefUpdateInsertTabContext& rCxt ); void UpdateInsertTabOnlyCells( sc::RefUpdateInsertTabContext& rCxt ); @@ -494,7 +494,7 @@ public: void RemoveProtected( SCROW nStartRow, SCROW nEndRow ); - SCsROW ApplySelectionCache( SfxItemPoolCache* pCache, const ScMarkData& rMark, ScEditDataArray* pDataArray = nullptr ); + SCsROW ApplySelectionCache( SfxItemPoolCache* pCache, const ScMarkData& rMark, ScEditDataArray* pDataArray ); void DeleteSelection( InsertDeleteFlags nDelFlag, const ScMarkData& rMark, bool bBroadcast ); void ClearSelectionItems( const sal_uInt16* pWhich, const ScMarkData& rMark ); @@ -531,7 +531,7 @@ public: void EndListeningFormulaCells( sc::EndListeningContext& rCxt, SCROW nRow1, SCROW nRow2, - SCROW* pStartRow = nullptr, SCROW* pEndRow = nullptr ); + SCROW* pStartRow, SCROW* pEndRow = nullptr ); void StartListening( SvtListener& rLst, SCROW nRow ); void EndListening( SvtListener& rLst, SCROW nRow ); @@ -571,7 +571,7 @@ public: ScFormulaVectorState GetFormulaVectorState( SCROW nRow ) const; formula::FormulaTokenRef ResolveStaticReference( SCROW nRow ); bool ResolveStaticReference( ScMatrix& rMat, SCCOL nMatCol, SCROW nRow1, SCROW nRow2 ); - void FillMatrix( ScMatrix& rMat, size_t nMatCol, SCROW nRow1, SCROW nRow2, svl::SharedStringPool* pPool = nullptr ) const; + void FillMatrix( ScMatrix& rMat, size_t nMatCol, SCROW nRow1, SCROW nRow2, svl::SharedStringPool* pPool ) const; formula::VectorRefArray FetchVectorRefArray( SCROW nRow1, SCROW nRow2 ); void SetFormulaResults( SCROW nRow, const double* pResults, size_t nLen ); void SetFormulaResults( SCROW nRow, const formula::FormulaConstTokenRef* pResults, size_t nLen ); @@ -613,7 +613,7 @@ public: SCROW nRowOffsetDest = 0) const; void DuplicateNotes(SCROW nStartRow, size_t nDataSize, ScColumn& rDestCol, - sc::ColumnBlockPosition& maDestBlockPos, bool bCloneCaption = true, SCROW nRowOffsetDest=0 ) const; + sc::ColumnBlockPosition& maDestBlockPos, bool bCloneCaption, SCROW nRowOffsetDest=0 ) const; void UpdateNoteCaptions( SCROW nRow1, SCROW nRow2 ); @@ -715,10 +715,10 @@ private: std::vector<sc::FormulaGroupEntry> GetFormulaGroupEntries(); void EndListeningIntersectedGroup( - sc::EndListeningContext& rCxt, SCROW nRow, std::vector<ScAddress>* pGroupPos = nullptr ); + sc::EndListeningContext& rCxt, SCROW nRow, std::vector<ScAddress>* pGroupPos ); void EndListeningIntersectedGroups( - sc::EndListeningContext& rCxt, SCROW nRow1, SCROW nRow2, std::vector<ScAddress>* pGroupPos = nullptr ); + sc::EndListeningContext& rCxt, SCROW nRow1, SCROW nRow2, std::vector<ScAddress>* pGroupPos ); void EndListeningGroup( sc::EndListeningContext& rCxt, SCROW nRow ); void SetNeedsListeningGroup( SCROW nRow ); diff --git a/sc/inc/compare.hxx b/sc/inc/compare.hxx index cd4f9e7e7ac2..6ab6527764d3 100644 --- a/sc/inc/compare.hxx +++ b/sc/inc/compare.hxx @@ -69,7 +69,7 @@ private: rComp.mbIgnoreCase. */ double CompareFunc( const Compare& rComp, CompareOptions* pOptions = nullptr ); -double CompareFunc( const Compare::Cell& rCell1, double fCell2, CompareOptions* pOptions = nullptr ); +double CompareFunc( const Compare::Cell& rCell1, double fCell2, CompareOptions* pOptions ); double CompareFunc( double fCell1, double fCell2 ); /** diff --git a/sc/inc/compiler.hxx b/sc/inc/compiler.hxx index 5f89b97044c7..9699c4a63556 100644 --- a/sc/inc/compiler.hxx +++ b/sc/inc/compiler.hxx @@ -311,7 +311,7 @@ private: }; std::vector<TableRefEntry> maTableRefs; /// "stack" of currently active ocTableRef tokens - bool NextNewToken(bool bInArray = false); + bool NextNewToken(bool bInArray); virtual void SetError(sal_uInt16 nError) override; sal_Int32 NextSymbol(bool bInArray); diff --git a/sc/inc/conditio.hxx b/sc/inc/conditio.hxx index 1b19b2c349ba..1faf6bc331fe 100644 --- a/sc/inc/conditio.hxx +++ b/sc/inc/conditio.hxx @@ -152,7 +152,7 @@ public: virtual void UpdateDeleteTab( sc::RefUpdateDeleteTabContext& rCxt ) = 0; virtual void UpdateMoveTab( sc::RefUpdateMoveTabContext& rCxt ) = 0; - virtual ScFormatEntry* Clone( ScDocument* pDoc = nullptr ) const = 0; + virtual ScFormatEntry* Clone( ScDocument* pDoc ) const = 0; virtual void SetParent( ScConditionalFormat* pNew ) = 0; @@ -268,7 +268,7 @@ public: virtual condformat::ScFormatEntryType GetType() const override { return condformat::CONDITION; } - virtual ScFormatEntry* Clone(ScDocument* pDoc = nullptr) const override; + virtual ScFormatEntry* Clone(ScDocument* pDoc) const override; static ScConditionMode GetModeFromApi(sal_Int32 nOperator); @@ -341,7 +341,7 @@ public: const OUString& GetStyle() const { return aStyleName; } void UpdateStyleName(const OUString& rNew) { aStyleName=rNew; } - virtual ScFormatEntry* Clone(ScDocument* pDoc = nullptr) const override; + virtual ScFormatEntry* Clone(ScDocument* pDoc) const override; protected: virtual void DataChanged( const ScRange* pModified ) const override; @@ -388,7 +388,7 @@ public: virtual void UpdateDeleteTab( sc::RefUpdateDeleteTabContext& ) override {} virtual void UpdateMoveTab( sc::RefUpdateMoveTabContext& ) override {} - virtual ScFormatEntry* Clone( ScDocument* pDoc = nullptr ) const override; + virtual ScFormatEntry* Clone( ScDocument* pDoc ) const override; virtual void SetParent( ScConditionalFormat* ) override {} diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index 749eab291595..57ab3128e5ee 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -697,7 +697,7 @@ public: ScDBData* GetDBAtArea(SCTAB nTab, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2); void RefreshDirtyTableColumnNames(); - SC_DLLPUBLIC const ScRangeData* GetRangeAtBlock( const ScRange& rBlock, OUString* pName=nullptr ) const; + SC_DLLPUBLIC const ScRangeData* GetRangeAtBlock( const ScRange& rBlock, OUString* pName ) const; SC_DLLPUBLIC bool HasPivotTable() const; SC_DLLPUBLIC ScDPCollection* GetDPCollection(); @@ -1007,7 +1007,7 @@ public: SC_DLLPUBLIC void SetFormula( const ScAddress& rPos, const OUString& rFormula, - formula::FormulaGrammar::Grammar eGram = formula::FormulaGrammar::GRAM_DEFAULT ); + formula::FormulaGrammar::Grammar eGram ); /** * Set formula cell, and transfer its ownership to the document. This call @@ -1291,9 +1291,9 @@ public: SC_DLLPUBLIC bool GetPrintArea( SCTAB nTab, SCCOL& rEndCol, SCROW& rEndRow, bool bNotes = true ) const; SC_DLLPUBLIC bool GetPrintAreaHor( SCTAB nTab, SCROW nStartRow, SCROW nEndRow, - SCCOL& rEndCol, bool bNotes = true ) const; + SCCOL& rEndCol, bool bNotes ) const; SC_DLLPUBLIC bool GetPrintAreaVer( SCTAB nTab, SCCOL nStartCol, SCCOL nEndCol, - SCROW& rEndRow, bool bNotes = true ) const; + SCROW& rEndRow, bool bNotes ) const; void InvalidateTableArea(); /// Return the number of columns / rows that should be visible for the tiled rendering. @@ -1418,7 +1418,7 @@ public: void CopyCellToDocument( const ScAddress& rSrcPos, const ScAddress& rDestPos, ScDocument& rDestDoc ); void CopyTabToClip(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, - SCTAB nTab, ScDocument* pClipDoc = nullptr); + SCTAB nTab, ScDocument* pClipDoc); bool InitColumnBlockPosition( sc::ColumnBlockPosition& rBlokPos, SCTAB nTab, SCCOL nCol ); @@ -1446,7 +1446,7 @@ public: case is the overall encompassing range. */ void CopyFromClip( const ScRange& rDestRange, const ScMarkData& rMark, InsertDeleteFlags nInsFlag, - ScDocument* pRefUndoDoc = nullptr, + ScDocument* pRefUndoDoc, ScDocument* pClipDoc = nullptr, bool bResetCut = true, bool bAsLink = false, @@ -1521,7 +1521,7 @@ public: bool bUpdateNoteCaptionPos = true ); SC_DLLPUBLIC void UpdateTranspose( const ScAddress& rDestPos, ScDocument* pClipDoc, - const ScMarkData& rMark, ScDocument* pUndoDoc = nullptr ); + const ScMarkData& rMark, ScDocument* pUndoDoc ); void UpdateGrow( const ScRange& rArea, SCCOL nGrowX, SCROW nGrowY ); @@ -1707,7 +1707,7 @@ public: SC_DLLPUBLIC bool SetOptimalHeight( sc::RowHeightContext& rCxt, SCROW nStartRow, SCROW nEndRow, SCTAB nTab ); - void UpdateAllRowHeights( sc::RowHeightContext& rCxt, const ScMarkData* pTabMark = nullptr ); + void UpdateAllRowHeights( sc::RowHeightContext& rCxt, const ScMarkData* pTabMark ); long GetNeededSize( SCCOL nCol, SCROW nRow, SCTAB nTab, OutputDevice* pDev, @@ -1800,7 +1800,7 @@ public: void RemoveManualBreaks( SCTAB nTab ); bool HasManualBreaks( SCTAB nTab ) const; - bool IsPageStyleInUse( const OUString& rStrPageStyle, SCTAB* pInTab = nullptr ); + bool IsPageStyleInUse( const OUString& rStrPageStyle, SCTAB* pInTab ); bool RemovePageStyleInUse( const OUString& rStrPageStyle ); bool RenamePageStyleInUse( const OUString& rOld, const OUString& rNew ); void ModifyStyleSheet( SfxStyleSheetBase& rPageStyle, @@ -1939,7 +1939,7 @@ public: SC_DLLPUBLIC ScChartListenerCollection* GetChartListenerCollection() const { return pChartListenerCollection;} void SetChartListenerCollection( ScChartListenerCollection*, - bool bSetChartRangeLists = false ); + bool bSetChartRangeLists ); void UpdateChart( const OUString& rName ); void RestoreChartListener( const OUString& rName ); SC_DLLPUBLIC void UpdateChartListenerCollection(); @@ -2342,10 +2342,10 @@ private: void SharePooledResources( ScDocument* pSrcDoc ); void EndListeningIntersectedGroup( - sc::EndListeningContext& rCxt, const ScAddress& rPos, std::vector<ScAddress>* pGroupPos = nullptr ); + sc::EndListeningContext& rCxt, const ScAddress& rPos, std::vector<ScAddress>* pGroupPos ); void EndListeningIntersectedGroups( - sc::EndListeningContext& rCxt, const ScRange& rRange, std::vector<ScAddress>* pGroupPos = nullptr ); + sc::EndListeningContext& rCxt, const ScRange& rRange, std::vector<ScAddress>* pGroupPos ); void EndListeningGroups( const std::vector<ScAddress>& rPosArray ); void SetNeedsListeningGroups( const std::vector<ScAddress>& rPosArray ); diff --git a/sc/inc/docuno.hxx b/sc/inc/docuno.hxx index 43b5de9a01a6..c276198af067 100644 --- a/sc/inc/docuno.hxx +++ b/sc/inc/docuno.hxx @@ -139,8 +139,7 @@ public: bool HasChangesListeners() const; void NotifyChanges( const OUString& rOperation, const ScRangeList& rRanges, - const css::uno::Sequence< css::beans::PropertyValue >& rProperties = - css::uno::Sequence< css::beans::PropertyValue >() ); + const css::uno::Sequence< css::beans::PropertyValue >& rProperties ); virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) throw(css::uno::RuntimeException, std::exception) override; diff --git a/sc/inc/drwlayer.hxx b/sc/inc/drwlayer.hxx index 54951b506f36..649610bdbce3 100644 --- a/sc/inc/drwlayer.hxx +++ b/sc/inc/drwlayer.hxx @@ -132,7 +132,7 @@ public: // automatic adjustments - void EnableAdjust( bool bSet = true ) { bAdjustEnabled = bSet; } + void EnableAdjust( bool bSet ) { bAdjustEnabled = bSet; } void BeginCalcUndo(bool bDisableTextEditUsesCommonUndoManager); SdrUndoGroup* GetCalcUndo(); @@ -140,7 +140,7 @@ public: void AddCalcUndo( SdrUndoAction* pUndo ); void MoveArea( SCTAB nTab, SCCOL nCol1,SCROW nRow1, SCCOL nCol2,SCROW nRow2, - SCsCOL nDx,SCsROW nDy, bool bInsDel, bool bUpdateNoteCaptionPos = true ); + SCsCOL nDx,SCsROW nDy, bool bInsDel, bool bUpdateNoteCaptionPos ); bool HasObjectsInRows( SCTAB nTab, SCROW nStartRow, SCROW nEndRow ); @@ -153,7 +153,7 @@ public: SCTAB nSourceTab, const Rectangle& rSourceRange, const ScAddress& rDestPos, const Rectangle& rDestRange ); - void SetPageSize( sal_uInt16 nPageNo, const Size& rSize, bool bUpdateNoteCaptionPos = true ); + void SetPageSize( sal_uInt16 nPageNo, const Size& rSize, bool bUpdateNoteCaptionPos ); // mirror or move between positive and negative positions for RTL void MirrorRTL( SdrObject* pObj ); diff --git a/sc/inc/filter.hxx b/sc/inc/filter.hxx index e51ee3a05a04..f0c576cfd73e 100644 --- a/sc/inc/filter.hxx +++ b/sc/inc/filter.hxx @@ -74,7 +74,7 @@ class ScEEAbsImport { class SAL_DLLPUBLIC_RTTI ScFormatFilterPlugin { public: // various import filters - virtual FltError ScImportLotus123( SfxMedium&, ScDocument*, rtl_TextEncoding eSrc = RTL_TEXTENCODING_DONTKNOW ) = 0; + virtual FltError ScImportLotus123( SfxMedium&, ScDocument*, rtl_TextEncoding eSrc ) = 0; virtual FltError ScImportQuattroPro( SfxMedium &rMedium, ScDocument *pDoc ) = 0; virtual FltError ScImportExcel( SfxMedium&, ScDocument*, const EXCIMPFORMAT ) = 0; // eFormat == EIF_AUTO -> matching filter is used automatically @@ -83,9 +83,9 @@ class SAL_DLLPUBLIC_RTTI ScFormatFilterPlugin { // eFormat == EIF_BIFF_LE4 -> only non storage files _might_ be read successfully virtual FltError ScImportStarCalc10( SvStream&, ScDocument* ) = 0; virtual FltError ScImportDif( SvStream&, ScDocument*, const ScAddress& rInsPos, - const rtl_TextEncoding eSrc = RTL_TEXTENCODING_DONTKNOW ) = 0; + const rtl_TextEncoding eSrc ) = 0; virtual FltError ScImportRTF( SvStream&, const OUString& rBaseURL, ScDocument*, ScRange& rRange ) = 0; - virtual FltError ScImportHTML( SvStream&, const OUString& rBaseURL, ScDocument*, ScRange& rRange, double nOutputFactor = 1.0, + virtual FltError ScImportHTML( SvStream&, const OUString& rBaseURL, ScDocument*, ScRange& rRange, double nOutputFactor, bool bCalcWidthHeight = true, SvNumberFormatter* pFormatter = nullptr, bool bConvertDate = true ) = 0; // various import helpers diff --git a/sc/inc/formulacell.hxx b/sc/inc/formulacell.hxx index 7aa569bef34d..c34831be5460 100644 --- a/sc/inc/formulacell.hxx +++ b/sc/inc/formulacell.hxx @@ -219,7 +219,7 @@ public: bool NeedsNumberFormat() const { return mbNeedsNumberFormat;} short GetFormatType() const { return nFormatType; } void Compile(const OUString& rFormula, - bool bNoListening = false, + bool bNoListening, const formula::FormulaGrammar::Grammar = formula::FormulaGrammar::GRAM_DEFAULT ); void Compile( sc::CompileFormulaContext& rCxt, const OUString& rFormula, bool bNoListening = false ); @@ -278,7 +278,7 @@ public: void UpdateDeleteTab( sc::RefUpdateDeleteTabContext& rCxt ); void UpdateMoveTab( sc::RefUpdateMoveTabContext& rCxt, SCTAB nTabNo ); bool TestTabRefAbs(SCTAB nTable); - void UpdateCompile( bool bForceIfNameInUse = false ); + void UpdateCompile( bool bForceIfNameInUse ); void FindRangeNamesInUse(sc::UpdatedRangeNames& rIndexes) const; bool IsSubTotal() const { return bSubTotal;} bool IsChanged() const { return bChanged;} diff --git a/sc/inc/global.hxx b/sc/inc/global.hxx index 27ea1f862906..0e606f8563eb 100644 --- a/sc/inc/global.hxx +++ b/sc/inc/global.hxx @@ -602,20 +602,20 @@ public: bool bForceSep = false ); /** Returns true, if the first and last character of the string is cQuote. */ - SC_DLLPUBLIC static bool IsQuoted( const OUString& rString, sal_Unicode cQuote = '\'' ); + SC_DLLPUBLIC static bool IsQuoted( const OUString& rString, sal_Unicode cQuote ); /** Inserts the character cQuote at beginning and end of rString. @param bEscapeEmbedded If <TRUE/>, embedded quote characters are escaped by doubling them. */ -SC_DLLPUBLIC static void AddQuotes( OUString& rString, sal_Unicode cQuote = '\'', bool bEscapeEmbedded = true ); +SC_DLLPUBLIC static void AddQuotes( OUString& rString, sal_Unicode cQuote, bool bEscapeEmbedded = true ); /** Erases the character cQuote from rString, if it exists at beginning AND end. @param bUnescapeEmbedded If <TRUE/>, embedded doubled quote characters are unescaped by replacing them with a single instance. */ -SC_DLLPUBLIC static void EraseQuotes( OUString& rString, sal_Unicode cQuote = '\'', bool bUnescapeEmbedded = true ); +SC_DLLPUBLIC static void EraseQuotes( OUString& rString, sal_Unicode cQuote, bool bUnescapeEmbedded = true ); /** Finds an unquoted instance of cChar in rString, starting at offset nStart. Unquoted instances may occur when concatenating two diff --git a/sc/inc/patattr.hxx b/sc/inc/patattr.hxx index ba4056b7dcd3..a3fcf887310c 100644 --- a/sc/inc/patattr.hxx +++ b/sc/inc/patattr.hxx @@ -78,7 +78,7 @@ public: void DeleteUnchanged( const ScPatternAttr* pOldAttrs ); - static SvxCellOrientation GetCellOrientation( const SfxItemSet& rItemSet, const SfxItemSet* pCondSet = nullptr ); + static SvxCellOrientation GetCellOrientation( const SfxItemSet& rItemSet, const SfxItemSet* pCondSet ); SvxCellOrientation GetCellOrientation( const SfxItemSet* pCondSet = nullptr ) const; /** Static helper function to fill a font object from the passed item set. */ diff --git a/sc/inc/postit.hxx b/sc/inc/postit.hxx index fb962442a1cb..8835deaee972 100644 --- a/sc/inc/postit.hxx +++ b/sc/inc/postit.hxx @@ -133,7 +133,7 @@ public: void ForgetCaption(); /** Shows or hides the note caption object. */ - void ShowCaption( const ScAddress& rPos, bool bShow = true ); + void ShowCaption( const ScAddress& rPos, bool bShow ); /** Returns true, if the caption object is visible. */ bool IsCaptionShown() const { return maNoteData.mbShown;} diff --git a/sc/inc/rangelst.hxx b/sc/inc/rangelst.hxx index 2641483adef9..64216efec531 100644 --- a/sc/inc/rangelst.hxx +++ b/sc/inc/rangelst.hxx @@ -38,12 +38,12 @@ public: ScRangeList& operator=(const ScRangeList& rList); void Append( const ScRange& rRange ); - ScRefFlags Parse( const OUString&, ScDocument* = nullptr, + ScRefFlags Parse( const OUString&, ScDocument*, ScRefFlags nMask = ScRefFlags::VALID, formula::FormulaGrammar::AddressConvention eConv = formula::FormulaGrammar::CONV_OOO, SCTAB nDefaultTab = 0, sal_Unicode cDelimiter = 0 ); - void Format( OUString&, ScRefFlags nFlags = ScRefFlags::ZERO, ScDocument* = nullptr, + void Format( OUString&, ScRefFlags nFlags, ScDocument* = nullptr, formula::FormulaGrammar::AddressConvention eConv = formula::FormulaGrammar::CONV_OOO, sal_Unicode cDelimiter = 0 ) const; diff --git a/sc/inc/rangenam.hxx b/sc/inc/rangenam.hxx index e21c5b3312c0..e5a6dfea8a21 100644 --- a/sc/inc/rangenam.hxx +++ b/sc/inc/rangenam.hxx @@ -133,7 +133,7 @@ public: * @param nLocalTab sheet index where this name belongs, or -1 for global * name. */ - void UpdateReference( sc::RefUpdateContext& rCxt, SCTAB nLocalTab = -1 ); + void UpdateReference( sc::RefUpdateContext& rCxt, SCTAB nLocalTab ); bool IsModified() const { return bModified; } SC_DLLPUBLIC void GuessPosition(); @@ -146,9 +146,9 @@ public: SC_DLLPUBLIC bool IsValidReference( ScRange& rRef ) const; bool IsRangeAtBlock( const ScRange& ) const; - void UpdateInsertTab( sc::RefUpdateInsertTabContext& rCxt, SCTAB nLocalTab = -1 ); - void UpdateDeleteTab( sc::RefUpdateDeleteTabContext& rCxt, SCTAB nLocalTab = -1 ); - void UpdateMoveTab( sc::RefUpdateMoveTabContext& rCxt, SCTAB nLocalTab = -1 ); + void UpdateInsertTab( sc::RefUpdateInsertTabContext& rCxt, SCTAB nLocalTab ); + void UpdateDeleteTab( sc::RefUpdateDeleteTabContext& rCxt, SCTAB nLocalTab ); + void UpdateMoveTab( sc::RefUpdateMoveTabContext& rCxt, SCTAB nLocalTab ); void ValidateTabRefs(); diff --git a/sc/inc/rangeutl.hxx b/sc/inc/rangeutl.hxx index 2aa035e07de2..414c9f13df61 100644 --- a/sc/inc/rangeutl.hxx +++ b/sc/inc/rangeutl.hxx @@ -48,14 +48,14 @@ public: ScArea& rArea, ScDocument* pDoc, SCTAB nTab, - ScAddress::Details const & rDetails = ScAddress::detailsOOOa1 ); + ScAddress::Details const & rDetails ); static void CutPosString ( const OUString& theAreaStr, OUString& thePosStr ); static bool IsAbsTabArea ( const OUString& rAreaStr, ScDocument* pDoc, - ScArea*** pppAreas = nullptr, + ScArea*** pppAreas, sal_uInt16* pAreaCount = nullptr, bool bAcceptCellRef = false, ScAddress::Details const & rDetails = ScAddress::detailsOOOa1 ); @@ -63,7 +63,7 @@ public: static bool IsAbsArea ( const OUString& rAreaStr, ScDocument* pDoc, SCTAB nTab, - OUString* pCompleteStr = nullptr, + OUString* pCompleteStr, ScRefAddress* pStartPos = nullptr, ScRefAddress* pEndPos = nullptr, ScAddress::Details const & rDetails = ScAddress::detailsOOOa1 ); @@ -71,7 +71,7 @@ public: static bool IsAbsPos ( const OUString& rPosStr, ScDocument* pDoc, SCTAB nTab, - OUString* pCompleteStr = nullptr, + OUString* pCompleteStr, ScRefAddress* pPosTripel = nullptr, ScAddress::Details const & rDetails = ScAddress::detailsOOOa1 ); @@ -198,7 +198,7 @@ public: const ScArea& rArea, const ScDocument* pDocument, formula::FormulaGrammar::AddressConvention eConv, - sal_Unicode cSeparator = ' ', + sal_Unicode cSeparator, bool bAppendStr = false, ScRefFlags nFormatFlags = (ScRefFlags::VALID | ScRefFlags::TAB_3D) ); diff --git a/sc/inc/scabstdlg.hxx b/sc/inc/scabstdlg.hxx index 545db4ebde20..d78f4e600266 100644 --- a/sc/inc/scabstdlg.hxx +++ b/sc/inc/scabstdlg.hxx @@ -178,7 +178,7 @@ public: virtual ScDocShell* GetDocShellTables() = 0; virtual bool IsTableBefore() = 0; virtual sal_uInt16 GetTableCount() = 0; - virtual const OUString* GetNextTable( sal_uInt16* pN = nullptr ) = 0; + virtual const OUString* GetNextTable( sal_uInt16* pN ) = 0; }; @@ -216,7 +216,7 @@ public: virtual bool GetRenameTable () const = 0; virtual void GetTabNameString( OUString& rString ) const = 0; virtual void SetForceCopyTable () = 0; - virtual void EnableRenameTable (bool bFlag=true) = 0; + virtual void EnableRenameTable (bool bFlag) = 0; }; class AbstractScNameCreateDlg : public VclAbstractDialog // Manage Name Dialog @@ -336,7 +336,7 @@ public: const ScAutoFormatData* pSelFormatData, ScViewData *pViewData) = 0; virtual AbstractScColRowLabelDlg * CreateScColRowLabelDlg (vcl::Window* pParent, - bool bCol = false, + bool bCol, bool bRow = false) = 0; virtual AbstractScSortWarningDlg * CreateScSortWarningDlg(vcl::Window* pParent, const OUString& rExtendText, const OUString& rCurrentText ) = 0; @@ -353,7 +353,7 @@ public: const std::vector<OUString>& rServices, int nId ) = 0; - virtual AbstractScDeleteCellDlg * CreateScDeleteCellDlg(vcl::Window* pParent, bool bDisallowCellMove = false) = 0 ; + virtual AbstractScDeleteCellDlg * CreateScDeleteCellDlg(vcl::Window* pParent, bool bDisallowCellMove) = 0 ; //for dataform virtual AbstractScDataFormDlg * CreateScDataFormDlg(vcl::Window* pParent, @@ -375,7 +375,7 @@ public: virtual AbstractScInsertCellDlg * CreateScInsertCellDlg( vcl::Window* pParent, int nId, - bool bDisallowCellMove = false ) = 0; + bool bDisallowCellMove ) = 0; virtual AbstractScInsertContentsDlg * CreateScInsertContentsDlg( vcl::Window* pParent, const OUString* pStrTitle = nullptr ) = 0; @@ -391,7 +391,7 @@ public: const OString& sDialogName, long nCurrent, long nDefault, - FieldUnit eFUnit = FUNIT_MM, + FieldUnit eFUnit, sal_uInt16 nDecimals = 2, long nMaximum = 1000, long nMinimum = 0, @@ -435,7 +435,7 @@ public: sal_uInt16 nOrient ) = 0; virtual AbstractScNewScenarioDlg * CreateScNewScenarioDlg ( vcl::Window* pParent, const OUString& rName, - bool bEdit = false, bool bSheetProtected = false ) = 0; + bool bEdit, bool bSheetProtected = false ) = 0; virtual AbstractScShowTabDlg * CreateScShowTabDlg(vcl::Window* pParent) = 0; virtual AbstractScStringInputDlg * CreateScStringInputDlg ( vcl::Window* pParent, @@ -449,7 +449,7 @@ public: const OUString& rTabBgColorNoColorText, //Label for no tab color const Color& rDefaultColor ) = 0; //Currently selected Color - virtual AbstractScImportOptionsDlg * CreateScImportOptionsDlg ( bool bAscii = true, + virtual AbstractScImportOptionsDlg * CreateScImportOptionsDlg ( bool bAscii, const ScImportOptions* pOptions = nullptr, const OUString* pStrTitle = nullptr, bool bMultiByte = false, @@ -459,10 +459,10 @@ public: virtual SfxAbstractTabDialog * CreateScAttrDlg( vcl::Window* pParent, const SfxItemSet* pCellAttrs ) = 0; - virtual SfxAbstractTabDialog * CreateScHFEditDlg(vcl::Window* pParent, + virtual SfxAbstractTabDialog * CreateScHFEditDlg(vcl::Window* pParent, const SfxItemSet& rCoreSet, - const OUString& rPageStyle, - sal_uInt16 nResId = RID_SCDLG_HFEDIT ) = 0; + const OUString& rPageStyle, + sal_uInt16 nResId ) = 0; virtual SfxAbstractTabDialog * CreateScStyleDlg( vcl::Window* pParent, SfxStyleSheetBase& rStyleBase, diff --git a/sc/inc/scmatrix.hxx b/sc/inc/scmatrix.hxx index b565335844ff..6757c07e1513 100644 --- a/sc/inc/scmatrix.hxx +++ b/sc/inc/scmatrix.hxx @@ -388,7 +388,7 @@ public: virtual double GetMinValue( bool bTextAsZero ) const = 0; virtual ScMatrixRef CompareMatrix( - sc::Compare& rComp, size_t nMatPos, sc::CompareOptions* pOptions = nullptr ) const = 0; + sc::Compare& rComp, size_t nMatPos, sc::CompareOptions* pOptions ) const = 0; /** * Convert the content of matrix into a linear array of numeric values. @@ -602,7 +602,7 @@ public: virtual double GetMinValue( bool bTextAsZero ) const override; virtual ScMatrixRef CompareMatrix( - sc::Compare& rComp, size_t nMatPos, sc::CompareOptions* pOptions = nullptr ) const override; + sc::Compare& rComp, size_t nMatPos, sc::CompareOptions* pOptions ) const override; /** * Convert the content of matrix into a linear array of numeric values. @@ -818,7 +818,7 @@ public: virtual double GetMaxValue(bool bTextAsZero) const override; virtual double GetMinValue(bool bTextAsZero) const override; - virtual ScMatrixRef CompareMatrix(sc::Compare& rComp, size_t nMatPos, sc::CompareOptions* pOptions = nullptr) const override; + virtual ScMatrixRef CompareMatrix(sc::Compare& rComp, size_t nMatPos, sc::CompareOptions* pOptions) const override; /** * Convert the content of matrix into a linear array of numeric values. diff --git a/sc/inc/stringutil.hxx b/sc/inc/stringutil.hxx index ef7bd50f3db6..3f9b0dbccaa2 100644 --- a/sc/inc/stringutil.hxx +++ b/sc/inc/stringutil.hxx @@ -132,7 +132,7 @@ public: static bool parseSimpleNumber( const char* p, size_t n, char dsep, char gsep, double& rVal); - static sal_Int32 SC_DLLPUBLIC GetQuotedTokenCount(const OUString &rIn, const OUString& rQuotedPairs, sal_Unicode cTok = ';' ); + static sal_Int32 SC_DLLPUBLIC GetQuotedTokenCount(const OUString &rIn, const OUString& rQuotedPairs, sal_Unicode cTok ); static OUString SC_DLLPUBLIC GetQuotedToken(const OUString &rIn, sal_Int32 nToken, const OUString& rQuotedPairs, sal_Unicode cTok, sal_Int32& rIndex ); diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx index 708e53537750..8e35256f48c0 100644 --- a/sc/inc/table.hxx +++ b/sc/inc/table.hxx @@ -331,7 +331,7 @@ public: bool HasBlockMatrixFragment( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2 ) const; bool HasSelectionMatrixFragment( const ScMarkData& rMark ) const; - bool IsBlockEmpty( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, bool bIgnoreNotes = false ) const; + 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 ); @@ -405,13 +405,13 @@ public: void InsertRow( SCCOL nStartCol, SCCOL nEndCol, SCROW nStartRow, SCSIZE nSize ); void DeleteRow( const sc::ColumnSet& rRegroupCols, SCCOL nStartCol, SCCOL nEndCol, SCROW nStartRow, SCSIZE nSize, - bool* pUndoOutline = nullptr, std::vector<ScAddress>* pGroupPos = nullptr ); + bool* pUndoOutline, std::vector<ScAddress>* pGroupPos = nullptr ); bool TestInsertCol( SCROW nStartRow, SCROW nEndRow, SCSIZE nSize ) const; void InsertCol( const sc::ColumnSet& rRegroupCols, SCCOL nStartCol, SCROW nStartRow, SCROW nEndRow, SCSIZE nSize ); void DeleteCol( - const sc::ColumnSet& rRegroupCols, SCCOL nStartCol, SCROW nStartRow, SCROW nEndRow, SCSIZE nSize, bool* pUndoOutline = nullptr ); + const sc::ColumnSet& rRegroupCols, SCCOL nStartCol, SCROW nStartRow, SCROW nEndRow, SCSIZE nSize, bool* pUndoOutline ); void DeleteArea( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, InsertDeleteFlags nDelFlag, @@ -717,7 +717,7 @@ public: sal_uInt16 GetColWidth( SCCOL nCol, 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; + SC_DLLPUBLIC sal_uInt16 GetRowHeight( SCROW nRow, SCROW* pStartRow, 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; sal_uLong GetColOffset( SCCOL nCol, bool bHiddenAsZero = true ) const; @@ -913,7 +913,7 @@ public: const SvtBroadcaster* GetBroadcaster( SCCOL nCol, SCROW nRow ) const; void DeleteBroadcasters( sc::ColumnBlockPosition& rBlockPos, SCCOL nCol, SCROW nRow1, SCROW nRow2 ); - void FillMatrix( ScMatrix& rMat, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, svl::SharedStringPool* pPool = nullptr ) const; + void FillMatrix( ScMatrix& rMat, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, svl::SharedStringPool* pPool ) const; void InterpretDirtyCells( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2 ); @@ -1122,11 +1122,11 @@ private: const ScColumn* FetchColumn( SCCOL nCol ) const; void EndListeningIntersectedGroup( - sc::EndListeningContext& rCxt, SCCOL nCol, SCROW nRow, std::vector<ScAddress>* pGroupPos = nullptr ); + sc::EndListeningContext& rCxt, SCCOL nCol, SCROW nRow, std::vector<ScAddress>* pGroupPos ); void EndListeningIntersectedGroups( sc::EndListeningContext& rCxt, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, - std::vector<ScAddress>* pGroupPos = nullptr ); + std::vector<ScAddress>* pGroupPos ); void EndListeningGroup( sc::EndListeningContext& rCxt, SCCOL nCol, SCROW nRow ); void SetNeedsListeningGroup( SCCOL nCol, SCROW nRow ); diff --git a/sc/inc/tabprotection.hxx b/sc/inc/tabprotection.hxx index 31ea28b73bd1..f5cff8ca4b89 100644 --- a/sc/inc/tabprotection.hxx +++ b/sc/inc/tabprotection.hxx @@ -66,7 +66,7 @@ public: ScPasswordHash eHash, ScPasswordHash eHas2 = PASSHASH_UNSPECIFIED) const = 0; virtual void setPasswordHash( const css::uno::Sequence<sal_Int8>& aPassword, - ScPasswordHash eHash = PASSHASH_SHA1, ScPasswordHash eHash2 = PASSHASH_UNSPECIFIED) = 0; + ScPasswordHash eHash, ScPasswordHash eHash2 = PASSHASH_UNSPECIFIED) = 0; virtual bool verifyPassword(const OUString& aPassText) const = 0; }; @@ -95,7 +95,7 @@ public: ScPasswordHash eHash, ScPasswordHash eHash2 = PASSHASH_UNSPECIFIED) const override; virtual void setPasswordHash( const css::uno::Sequence<sal_Int8>& aPassword, - ScPasswordHash eHash = PASSHASH_SHA1, ScPasswordHash eHash2 = PASSHASH_UNSPECIFIED) override; + ScPasswordHash eHash, ScPasswordHash eHash2 = PASSHASH_UNSPECIFIED) override; virtual bool verifyPassword(const OUString& aPassText) const override; bool isOptionEnabled(Option eOption) const; @@ -180,7 +180,7 @@ public: ScPasswordHash eHash, ScPasswordHash eHash2 = PASSHASH_UNSPECIFIED) const override; virtual void setPasswordHash( const css::uno::Sequence<sal_Int8>& aPassword, - ScPasswordHash eHash = PASSHASH_SHA1, ScPasswordHash eHash2 = PASSHASH_UNSPECIFIED) override; + ScPasswordHash eHash, ScPasswordHash eHash2 = PASSHASH_UNSPECIFIED) override; virtual bool verifyPassword(const OUString& aPassText) const override; bool isOptionEnabled(Option eOption) const; diff --git a/sc/inc/tokenarray.hxx b/sc/inc/tokenarray.hxx index 8f6bce3b215d..992a9d37dd82 100644 --- a/sc/inc/tokenarray.hxx +++ b/sc/inc/tokenarray.hxx @@ -130,7 +130,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 bCheckCopyArea = false ); + void AdjustAbsoluteRefs( const ScDocument* pOldDoc, const ScAddress& rOldPos, const ScAddress& rNewPos, bool bCheckCopyArea ); /** When copying a sheet-local named expression, move sheet references that point to the originating sheet to point to the new sheet instead. diff --git a/sc/inc/viewuno.hxx b/sc/inc/viewuno.hxx index 90c3a37d2a9d..3fc353bf1e4f 100644 --- a/sc/inc/viewuno.hxx +++ b/sc/inc/viewuno.hxx @@ -197,7 +197,7 @@ public: void SelectionChanged(); void VisAreaChanged(); // bSameTabButMoved = true if the same sheet as before is activated, used after moving/copying/inserting/deleting a sheet - void SheetChanged( bool bSameTabButMoved = false ); + void SheetChanged( bool bSameTabButMoved ); bool IsMouseListening() const; bool MousePressed( const css::awt::MouseEvent& e ) throw (css::uno::RuntimeException); bool MouseReleased( const css::awt::MouseEvent& e ) throw (css::uno::RuntimeException); |