diff options
Diffstat (limited to 'sc')
69 files changed, 166 insertions, 167 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); diff --git a/sc/qa/unit/helper/qahelper.hxx b/sc/qa/unit/helper/qahelper.hxx index dc4afd19bf53..5b3f8b609222 100644 --- a/sc/qa/unit/helper/qahelper.hxx +++ b/sc/qa/unit/helper/qahelper.hxx @@ -190,7 +190,7 @@ SCQAHELPER_DLLPUBLIC bool isFormulaWithoutError(ScDocument& rDoc, const ScAddres */ SCQAHELPER_DLLPUBLIC OUString toString( ScDocument& rDoc, const ScAddress& rPos, ScTokenArray& rArray, - formula::FormulaGrammar::Grammar eGram = formula::FormulaGrammar::GRAM_NATIVE); + formula::FormulaGrammar::Grammar eGram); inline std::string print(const ScAddress& rAddr) { diff --git a/sc/source/core/data/documen3.cxx b/sc/source/core/data/documen3.cxx index 3d181c9c2437..711212a5e66c 100644 --- a/sc/source/core/data/documen3.cxx +++ b/sc/source/core/data/documen3.cxx @@ -1704,7 +1704,7 @@ void ScDocument::ResetEmbedded() while result is less than nStopTwips. @return true if advanced at least one row. */ -static bool lcl_AddTwipsWhile( long & rTwips, long nStopTwips, SCROW & rPosY, SCROW nEndRow, const ScTable * pTable, bool bHiddenAsZero = true ) +static bool lcl_AddTwipsWhile( long & rTwips, long nStopTwips, SCROW & rPosY, SCROW nEndRow, const ScTable * pTable, bool bHiddenAsZero ) { SCROW nRow = rPosY; bool bAdded = false; diff --git a/sc/source/core/data/documen8.cxx b/sc/source/core/data/documen8.cxx index ca158fdda762..e7bef1ad39fe 100644 --- a/sc/source/core/data/documen8.cxx +++ b/sc/source/core/data/documen8.cxx @@ -507,7 +507,7 @@ public: void setRow(SCROW nRow) { mrCalcPos.SetRow(nRow); } void incTab() { mrCalcPos.IncTab(); } - void incCol(SCCOL nInc=1) { mrCalcPos.IncCol(nInc); } + void incCol(SCCOL nInc) { mrCalcPos.IncCol(nInc); } void setOldMapMode(const MapMode& rOldMapMode) { maOldMapMode = rOldMapMode; } diff --git a/sc/source/core/data/tabprotection.cxx b/sc/source/core/data/tabprotection.cxx index a2bb7b8a4124..f055130c4e98 100644 --- a/sc/source/core/data/tabprotection.cxx +++ b/sc/source/core/data/tabprotection.cxx @@ -89,8 +89,8 @@ ScPassHashProtectable::~ScPassHashProtectable() class ScTableProtectionImpl { public: - static Sequence<sal_Int8> hashPassword(const OUString& aPassText, ScPasswordHash eHash = PASSHASH_SHA1); - static Sequence<sal_Int8> hashPassword(const Sequence<sal_Int8>& rPassHash, ScPasswordHash eHash = PASSHASH_SHA1); + static Sequence<sal_Int8> hashPassword(const OUString& aPassText, ScPasswordHash eHash); + static Sequence<sal_Int8> hashPassword(const Sequence<sal_Int8>& rPassHash, ScPasswordHash eHash); explicit ScTableProtectionImpl(SCSIZE nOptSize); explicit ScTableProtectionImpl(const ScTableProtectionImpl& r); @@ -100,13 +100,13 @@ public: void setProtected(bool bProtected); bool isPasswordEmpty() const { return mbEmptyPass;} - bool hasPasswordHash(ScPasswordHash eHash, ScPasswordHash eHash2 = PASSHASH_UNSPECIFIED) const; + bool hasPasswordHash(ScPasswordHash eHash, ScPasswordHash eHash2) const; void setPassword(const OUString& aPassText); css::uno::Sequence<sal_Int8> getPasswordHash( - ScPasswordHash eHash, ScPasswordHash eHash2 = PASSHASH_UNSPECIFIED) const; + ScPasswordHash eHash, ScPasswordHash eHash2) const; void setPasswordHash( const css::uno::Sequence<sal_Int8>& aPassword, - ScPasswordHash eHash = PASSHASH_SHA1, ScPasswordHash eHash2 = PASSHASH_UNSPECIFIED); + ScPasswordHash eHash, ScPasswordHash eHash2); bool verifyPassword(const OUString& aPassText) const; bool isOptionEnabled(SCSIZE nOptId) const; diff --git a/sc/source/core/inc/cellkeytranslator.hxx b/sc/source/core/inc/cellkeytranslator.hxx index c86e09010208..f7a8230a02ac 100644 --- a/sc/source/core/inc/cellkeytranslator.hxx +++ b/sc/source/core/inc/cellkeytranslator.hxx @@ -63,7 +63,7 @@ typedef std::unordered_map< OUString, ::std::list<ScCellKeyword>, OUStringHash > class ScCellKeywordTranslator { public: - static void transKeyword(OUString& rName, const css::lang::Locale* pLocale = nullptr, OpCode eOpCode = ocNone); + static void transKeyword(OUString& rName, const css::lang::Locale* pLocale, OpCode eOpCode = ocNone); ~ScCellKeywordTranslator(); private: @@ -72,7 +72,7 @@ private: void init(); void addToMap(const OUString& rKey, const sal_Char* pName, const css::lang::Locale& rLocale, - OpCode eOpCode = ocNone); + OpCode eOpCode); void addToMap(const TransItem* pItems, const css::lang::Locale& rLocale); static ::std::unique_ptr<ScCellKeywordTranslator> spInstance; diff --git a/sc/source/core/inc/interpre.hxx b/sc/source/core/inc/interpre.hxx index e454daa08ff9..a8d8b63db6a1 100644 --- a/sc/source/core/inc/interpre.hxx +++ b/sc/source/core/inc/interpre.hxx @@ -902,7 +902,7 @@ double GetMedian( ::std::vector<double> & rArray ); double GetPercentileExclusive( ::std::vector<double> & rArray, double fPercentile ); void GetNumberSequenceArray( sal_uInt8 nParamCount, ::std::vector<double>& rArray, bool bConvertTextInArray ); void GetSortArray( sal_uInt8 nParamCount, ::std::vector<double>& rSortArray, ::std::vector<long>* pIndexOrder, bool bConvertTextInArray, bool bAllowEmptyArray ); -static void QuickSort(::std::vector<double>& rSortArray, ::std::vector<long>* pIndexOrder = nullptr); +static void QuickSort(::std::vector<double>& rSortArray, ::std::vector<long>* pIndexOrder); void ScModalValue(); void ScModalValue_Multi(); void ScAveDev(); diff --git a/sc/source/core/tool/address.cxx b/sc/source/core/tool/address.cxx index 265877cd94e4..c6138534bca9 100644 --- a/sc/source/core/tool/address.cxx +++ b/sc/source/core/tool/address.cxx @@ -1445,7 +1445,7 @@ static ScRefFlags lcl_ScAddress_Parse_OOo( const sal_Unicode* p, ScDocument* pDo static ScRefFlags lcl_ScAddress_Parse ( const sal_Unicode* p, ScDocument* pDoc, ScAddress& rAddr, const ScAddress::Details& rDetails, - ScAddress::ExternalInfo* pExtInfo = nullptr, + ScAddress::ExternalInfo* pExtInfo, const uno::Sequence<sheet::ExternalLinkInfo>* pExternalLinks = nullptr, sal_Int32* pSheetEndPos = nullptr, const OUString* pErrRef = nullptr ) diff --git a/sc/source/core/tool/cellkeytranslator.cxx b/sc/source/core/tool/cellkeytranslator.cxx index 16ce164d1315..2c515e3dc85c 100644 --- a/sc/source/core/tool/cellkeytranslator.cxx +++ b/sc/source/core/tool/cellkeytranslator.cxx @@ -75,7 +75,7 @@ ScCellKeyword::ScCellKeyword(const sal_Char* pName, OpCode eOpCode, const lang:: ::std::unique_ptr<ScCellKeywordTranslator> ScCellKeywordTranslator::spInstance; static void lclMatchKeyword(OUString& rName, const ScCellKeywordHashMap& aMap, - OpCode eOpCode = ocNone, const lang::Locale* pLocale = nullptr) + OpCode eOpCode, const lang::Locale* pLocale = nullptr) { ScCellKeywordHashMap::const_iterator itrEnd = aMap.end(); ScCellKeywordHashMap::const_iterator itr = aMap.find(rName); diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx index 7c38ca4b3d3a..1d9899a4f76d 100644 --- a/sc/source/core/tool/compiler.cxx +++ b/sc/source/core/tool/compiler.cxx @@ -479,7 +479,7 @@ static bool lcl_parseExternalName( OUString& rFile, OUString& rName, const sal_Unicode cSep, - const ScDocument* pDoc = nullptr, + const ScDocument* pDoc, const uno::Sequence<sheet::ExternalLinkInfo>* pExternalLinks = nullptr ) { /* TODO: future versions will have to support sheet-local names too, thus diff --git a/sc/source/filter/excel/xelink.cxx b/sc/source/filter/excel/xelink.cxx index 7918d4679a02..bcf3a56890af 100644 --- a/sc/source/filter/excel/xelink.cxx +++ b/sc/source/filter/excel/xelink.cxx @@ -428,7 +428,7 @@ public: const OUString& rName, const ScExternalRefCache::TokenArrayRef& rArray ); XclExpXti GetXti( sal_uInt16 nFileId, const OUString& rTabName, sal_uInt16 nXclTabSpan, - XclExpRefLogEntry* pRefLogEntry = nullptr ); + XclExpRefLogEntry* pRefLogEntry ); /** Writes all SUPBOOK records with their sub records. */ virtual void Save( XclExpStream& rStrm ) override; diff --git a/sc/source/filter/excel/xilink.cxx b/sc/source/filter/excel/xilink.cxx index f527b8b4b4c1..7ad8854493da 100644 --- a/sc/source/filter/excel/xilink.cxx +++ b/sc/source/filter/excel/xilink.cxx @@ -96,7 +96,7 @@ public: /** Reads a CRN record (external referenced cell). */ void ReadCrn( XclImpStream& rStrm ); /** Reads an EXTERNNAME record. */ - void ReadExternname( XclImpStream& rStrm, ExcelToSc* pFormulaConv = nullptr ); + void ReadExternname( XclImpStream& rStrm, ExcelToSc* pFormulaConv ); /** Returns the SUPBOOK record type. */ inline XclSupbookType GetType() const { return meType; } @@ -169,7 +169,7 @@ public: /** Reads a CRN record and appends it to the current SUPBOOK. */ void ReadCrn( XclImpStream& rStrm ); /** Reads an EXTERNNAME record and appends it to the current SUPBOOK. */ - void ReadExternname( XclImpStream& rStrm, ExcelToSc* pFormulaConv = nullptr ); + void ReadExternname( XclImpStream& rStrm, ExcelToSc* pFormulaConv ); /** Returns true, if the specified XTI entry contains an internal reference. */ bool IsSelfRef( sal_uInt16 nXtiIndex ) const; diff --git a/sc/source/filter/inc/biffinputstream.hxx b/sc/source/filter/inc/biffinputstream.hxx index b1350571b2f9..76ae3a82eec5 100644 --- a/sc/source/filter/inc/biffinputstream.hxx +++ b/sc/source/filter/inc/biffinputstream.hxx @@ -230,7 +230,7 @@ public: True = NUL characters are inserted into the imported string. False = NUL characters are replaced by question marks (default). */ - OString readByteString( bool b16BitLen, bool bAllowNulChars = false ); + OString readByteString( bool b16BitLen, bool bAllowNulChars ); /** Reads 8/16 bit string length and character array, and returns a Unicode string. @param b16BitLen diff --git a/sc/source/filter/inc/excscen.hxx b/sc/source/filter/inc/excscen.hxx index 6ac3256416b3..38d436c6d61c 100644 --- a/sc/source/filter/inc/excscen.hxx +++ b/sc/source/filter/inc/excscen.hxx @@ -49,7 +49,7 @@ public: ExcScenario( XclImpStream& rIn, const RootData& rRoot ); - void Apply( const XclImpRoot& rRoot, const bool bLast = false ); + void Apply( const XclImpRoot& rRoot, const bool bLast ); protected: diff --git a/sc/source/filter/inc/externallinkbuffer.hxx b/sc/source/filter/inc/externallinkbuffer.hxx index 498e13a2caa5..13250dfc1c8a 100644 --- a/sc/source/filter/inc/externallinkbuffer.hxx +++ b/sc/source/filter/inc/externallinkbuffer.hxx @@ -229,7 +229,7 @@ public: /** Returns the token index of the external document. */ sal_Int32 getDocumentLinkIndex() const; /** Returns the external sheet cache index or for the passed sheet. */ - sal_Int32 getSheetCacheIndex( sal_Int32 nTabId = 0 ) const; + sal_Int32 getSheetCacheIndex( sal_Int32 nTabId ) const; /** Returns the sheet cache of the external sheet with the passed index. */ css::uno::Reference< css::sheet::XExternalSheetCache > getSheetCache( sal_Int32 nTabId ) const; diff --git a/sc/source/filter/inc/fapihelper.hxx b/sc/source/filter/inc/fapihelper.hxx index 362a42090371..edde1c4211cf 100644 --- a/sc/source/filter/inc/fapihelper.hxx +++ b/sc/source/filter/inc/fapihelper.hxx @@ -82,7 +82,7 @@ public: @return The encryption data or an empty sequence on 'Cancel' or any error. */ static css::uno::Sequence< css::beans::NamedValue > QueryEncryptionDataForMedium( SfxMedium& rMedium, ::comphelper::IDocPasswordVerifier& rVerifier, - const ::std::vector< OUString >* pDefaultPasswords = nullptr ); + const ::std::vector< OUString >* pDefaultPasswords ); }; template< typename Type > diff --git a/sc/source/filter/inc/formel.hxx b/sc/source/filter/inc/formel.hxx index 8a5815176027..27e54c642034 100644 --- a/sc/source/filter/inc/formel.hxx +++ b/sc/source/filter/inc/formel.hxx @@ -73,7 +73,7 @@ public: void Append( const ScAddress& aSRD, SCTAB nTab ); void Append( const ScRange& aCRD, SCTAB nTab ); - const ScRange* First ( SCTAB nTab = 0 ); + const ScRange* First ( SCTAB nTab ); const ScRange* Next (); bool HasRanges () const { return !m_TabRanges.empty(); } diff --git a/sc/source/filter/inc/formulabase.hxx b/sc/source/filter/inc/formulabase.hxx index aae1f93ad010..2260a2e5a9a8 100644 --- a/sc/source/filter/inc/formulabase.hxx +++ b/sc/source/filter/inc/formulabase.hxx @@ -732,7 +732,7 @@ public: ApiCellRangeList& orRanges, const ApiTokenSequence& rTokens, bool bAllowRelative, - sal_Int32 nFilterBySheet = -1 ) const; + sal_Int32 nFilterBySheet ) const; /** Tries to extract a string from a formula token sequence. diff --git a/sc/source/filter/inc/ftools.hxx b/sc/source/filter/inc/ftools.hxx index 5a7d872445e9..1b18921e258e 100644 --- a/sc/source/filter/inc/ftools.hxx +++ b/sc/source/filter/inc/ftools.hxx @@ -267,7 +267,7 @@ public: ScFormatFilterPluginImpl(); virtual ~ScFormatFilterPluginImpl(); // various import filters - virtual FltError ScImportLotus123( SfxMedium&, ScDocument*, rtl_TextEncoding eSrc = RTL_TEXTENCODING_DONTKNOW ) override; + virtual FltError ScImportLotus123( SfxMedium&, ScDocument*, rtl_TextEncoding eSrc ) override; virtual FltError ScImportQuattroPro( SfxMedium &rMedium, ScDocument *pDoc ) override; virtual FltError ScImportExcel( SfxMedium&, ScDocument*, const EXCIMPFORMAT ) override; // eFormat == EIF_AUTO -> passender Filter wird automatisch verwendet @@ -276,10 +276,10 @@ public: // eFormat == EIF_BIFF_LE4 -> nur Nicht-Storage-Dateien _koennen_ zum Erfolg fuehren virtual FltError ScImportStarCalc10( SvStream&, ScDocument* ) override; virtual FltError ScImportDif( SvStream&, ScDocument*, const ScAddress& rInsPos, - const rtl_TextEncoding eSrc = RTL_TEXTENCODING_DONTKNOW ) override; + const rtl_TextEncoding eSrc ) override; virtual FltError ScImportRTF( SvStream&, const OUString& rBaseURL, ScDocument*, ScRange& rRange ) override; virtual FltError ScImportHTML( SvStream&, const OUString& rBaseURL, ScDocument*, ScRange& rRange, - double nOutputFactor = 1.0, bool bCalcWidthHeight = true, + double nOutputFactor, bool bCalcWidthHeight = true, SvNumberFormatter* pFormatter = nullptr, bool bConvertDate = true ) override; virtual ScEEAbsImport *CreateRTFImport( ScDocument* pDoc, const ScRange& rRange ) override; diff --git a/sc/source/filter/inc/htmlpars.hxx b/sc/source/filter/inc/htmlpars.hxx index ecc0ac860630..44eb72372a07 100644 --- a/sc/source/filter/inc/htmlpars.hxx +++ b/sc/source/filter/inc/htmlpars.hxx @@ -411,7 +411,7 @@ public: /** Returns the resulting Calc position of the top left edge of the table. */ inline const ScHTMLPos& GetDocPos() const { return maDocBasePos; } /** Calculates the resulting Calc position of the specified HTML column/row. */ - SCCOLROW GetDocPos( ScHTMLOrient eOrient, SCCOLROW nCellPos = 0 ) const; + SCCOLROW GetDocPos( ScHTMLOrient eOrient, SCCOLROW nCellPos ) const; /** Calculates the resulting Calc position of the specified HTML cell. */ ScHTMLPos GetDocPos( const ScHTMLPos& rCellPos ) const; diff --git a/sc/source/filter/inc/namebuff.hxx b/sc/source/filter/inc/namebuff.hxx index c711e977b2ea..f6d700106976 100644 --- a/sc/source/filter/inc/namebuff.hxx +++ b/sc/source/filter/inc/namebuff.hxx @@ -91,7 +91,7 @@ public: inline NameBuffer( RootData*, sal_uInt16 nNewBase ); virtual ~NameBuffer(); - inline void SetBase( sal_uInt16 nNewBase = 0 ); + inline void SetBase( sal_uInt16 nNewBase ); void operator <<( const OUString& rNewString ); }; @@ -207,7 +207,7 @@ public: inline ExtSheetBuffer( RootData* ); sal_Int16 Add( const OUString& rFilePathAndName, - const OUString& rTabName, const bool bSameWorkbook = false ); + const OUString& rTabName, const bool bSameWorkbook ); bool GetScTabIndex( sal_uInt16 nExcSheetIndex, sal_uInt16& rIn_LastTab_Out_ScIndex ); void GetLink( const sal_uInt16 nExcSheetIndex, OUString &rAppl, OUString &rDoc ) const; diff --git a/sc/source/filter/inc/numberformatsbuffer.hxx b/sc/source/filter/inc/numberformatsbuffer.hxx index 4f477a2d779a..f37ac37553a8 100644 --- a/sc/source/filter/inc/numberformatsbuffer.hxx +++ b/sc/source/filter/inc/numberformatsbuffer.hxx @@ -98,7 +98,7 @@ public: /** Final processing after import of all style settings. */ void finalizeImport(); - sal_uLong fillToItemSet( SfxItemSet& rItemSet, sal_Int32 nNumFmtId, bool bSkipPoolDefs = false ) const; + sal_uLong fillToItemSet( SfxItemSet& rItemSet, sal_Int32 nNumFmtId, bool bSkipPoolDefs ) const; /** Writes the specified number format to the passed property map. */ void writeToPropertyMap( PropertyMap& rPropMap, sal_Int32 nNumFmtId ) const; diff --git a/sc/source/filter/inc/richstring.hxx b/sc/source/filter/inc/richstring.hxx index ad5789e0f2ae..5ec2bfdbe9d7 100644 --- a/sc/source/filter/inc/richstring.hxx +++ b/sc/source/filter/inc/richstring.hxx @@ -231,7 +231,7 @@ public: if there is only one unformatted portion. */ bool extractPlainString( OUString& orString, - const oox::xls::Font* pFirstPortionFont = nullptr ) const; + const oox::xls::Font* pFirstPortionFont ) const; /** Converts the string and writes it into the passed XText. @param rxText The XText interface of the target object. diff --git a/sc/source/filter/inc/workbookhelper.hxx b/sc/source/filter/inc/workbookhelper.hxx index af4ea9fbe5da..453abd304824 100644 --- a/sc/source/filter/inc/workbookhelper.hxx +++ b/sc/source/filter/inc/workbookhelper.hxx @@ -172,7 +172,7 @@ public: OUString& orName, const css::uno::Sequence< css::sheet::FormulaToken>& rTokens, sal_Int32 nIndex, - sal_Int32 nNameFlags = 0 ) const; + sal_Int32 nNameFlags ) const; /** Creates and returns a defined name on-the-fly in the sheet. The name will not be buffered in the global defined names buffer. @@ -181,7 +181,7 @@ public: OUString& orName, const css::uno::Sequence< css::sheet::FormulaToken>& rTokens, sal_Int32 nIndex, - sal_Int32 nNameFlags = 0, sal_Int32 nTab = -1 ) const; + sal_Int32 nNameFlags, sal_Int32 nTab = -1 ) const; /** Creates and returns a database range on-the-fly in the Calc document. The range will not be buffered in the global table buffer. diff --git a/sc/source/filter/inc/xechart.hxx b/sc/source/filter/inc/xechart.hxx index 4fe5f5c3baa2..7ba80f109c79 100644 --- a/sc/source/filter/inc/xechart.hxx +++ b/sc/source/filter/inc/xechart.hxx @@ -497,7 +497,7 @@ public: virtual void SetRotation( sal_uInt16 nRotation ) override; /** Converts all text settings of the passed title text object. */ - void ConvertTitle( css::uno::Reference< css::chart2::XTitle > const & xTitle, sal_uInt16 nTarget, const OUString* pSubTitle = nullptr ); + void ConvertTitle( css::uno::Reference< css::chart2::XTitle > const & xTitle, sal_uInt16 nTarget, const OUString* pSubTitle ); /** Converts all text settings of the passed legend. */ void ConvertLegend( const ScfPropertySet& rPropSet ); /** Converts all settings of the passed data point caption text object. */ diff --git a/sc/source/filter/inc/xelink.hxx b/sc/source/filter/inc/xelink.hxx index 0a606f3e9572..1e0cb52fe666 100644 --- a/sc/source/filter/inc/xelink.hxx +++ b/sc/source/filter/inc/xelink.hxx @@ -157,13 +157,13 @@ public: void FindExtSheet( sal_uInt16& rnExtSheet, sal_uInt16& rnFirstXclTab, sal_uInt16& rnLastXclTab, SCTAB nFirstScTab, SCTAB nLastScTab, - XclExpRefLogEntry* pRefLogEntry = nullptr ); + XclExpRefLogEntry* pRefLogEntry ); /** Searches for a special EXTERNSHEET index for the own document. */ sal_uInt16 FindExtSheet( sal_Unicode cCode ); void FindExtSheet( sal_uInt16 nFileId, const OUString& rTabName, sal_uInt16 nXclTabSpan, sal_uInt16& rnExtSheet, sal_uInt16& rnFirstSBTab, sal_uInt16& rnLastSBTab, - XclExpRefLogEntry* pRefLogEntry = nullptr ); + XclExpRefLogEntry* pRefLogEntry ); /** Stores the cell with the given address in a CRN record list. */ void StoreCell( const ScSingleRefData& rRef, const ScAddress& rPos ); diff --git a/sc/source/filter/inc/xestyle.hxx b/sc/source/filter/inc/xestyle.hxx index f934f40c5059..5d31b6a34ed8 100644 --- a/sc/source/filter/inc/xestyle.hxx +++ b/sc/source/filter/inc/xestyle.hxx @@ -232,7 +232,7 @@ public: @param bAppFont true = Sets the application font; false = Inserts a new font. @return The resulting Excel font index. */ sal_uInt16 Insert( const vcl::Font& rFont, - XclExpColorType eColorType, bool bAppFont = false ); + XclExpColorType eColorType, bool bAppFont ); /** Inserts the SvxFont into the buffer if not present, e.g. where escapements are used. @return The resulting Excel font index. */ sal_uInt16 Insert( const SvxFont& rFont, @@ -242,7 +242,7 @@ public: @param bAppFont true = Sets the application font; false = Inserts a new font. @return The resulting Excel font index. */ sal_uInt16 Insert( const SfxItemSet& rItemSet, sal_Int16 nScript, - XclExpColorType eColorType, bool bAppFont = false ); + XclExpColorType eColorType, bool bAppFont ); /** Writes all FONT records contained in this buffer. */ virtual void Save( XclExpStream& rStrm ) override; @@ -396,7 +396,7 @@ struct XclExpCellArea : public XclCellArea @return true = At least one area item is set. */ bool FillFromItemSet( const SfxItemSet& rItemSet, XclExpPalette& rPalette, - bool bStyle = false ); + bool bStyle ); /** Fills the mn***Color base members from the mn***ColorId members. */ void SetFinalColors( const XclExpPalette& rPalette ); @@ -648,7 +648,7 @@ private: sal_uInt32 FindXF( const SfxStyleSheetBase& rStyleSheet ) const; /** Returns the XF ID of a built-in style XF, searches by style identifier. */ - sal_uInt32 FindBuiltInXF( sal_uInt8 nStyleId, sal_uInt8 nLevel = EXC_STYLE_NOLEVEL ) const; + sal_uInt32 FindBuiltInXF( sal_uInt8 nStyleId, sal_uInt8 nLevel ) const; /** Tries to find the XF record containing the passed format or inserts a new record. @return The XF record ID. */ diff --git a/sc/source/filter/inc/xichart.hxx b/sc/source/filter/inc/xichart.hxx index f5a838ddff7c..9c95cabde818 100644 --- a/sc/source/filter/inc/xichart.hxx +++ b/sc/source/filter/inc/xichart.hxx @@ -264,7 +264,7 @@ public: /** Converts and writes the contained data to the passed property set. */ void Convert( const XclImpChRoot& rRoot, ScfPropertySet& rPropSet, XclChObjectType eObjType, - sal_uInt16 nFormatIdx = EXC_CHDATAFORMAT_UNKNOWN ) const; + sal_uInt16 nFormatIdx ) const; private: XclChAreaFormat maData; /// Contents of the CHAREAFORMAT record. diff --git a/sc/source/filter/inc/xihelper.hxx b/sc/source/filter/inc/xihelper.hxx index a0ff9bc8db1a..09a5a0ef3920 100644 --- a/sc/source/filter/inc/xihelper.hxx +++ b/sc/source/filter/inc/xihelper.hxx @@ -122,7 +122,7 @@ public: static void SetToDocument( ScDocumentImport& rDoc, const ScAddress& rPos, const XclImpRoot& rRoot, - const XclImpString& rString, sal_uInt16 nXFIndex = 0 ); + const XclImpString& rString, sal_uInt16 nXFIndex ); }; // Header/footer conversion =================================================== diff --git a/sc/source/filter/inc/xilink.hxx b/sc/source/filter/inc/xilink.hxx index 6bdbbfc163a9..6fc85b2cf609 100644 --- a/sc/source/filter/inc/xilink.hxx +++ b/sc/source/filter/inc/xilink.hxx @@ -80,7 +80,7 @@ public: @return The 0-based index of the sheet nCreatedId if it is contained in the list. Example: The buffer is 3;5;2;4;1, nCreatedId is 1 and nMaxTabId is 3. The function will return 2 which is the 0-based index of sheet 1 in the list 3;2;1. */ - sal_uInt16 GetCurrentIndex( sal_uInt16 nCreatedId, sal_uInt16 nMaxTabId = 0xFFFF ) const; + sal_uInt16 GetCurrentIndex( sal_uInt16 nCreatedId, sal_uInt16 nMaxTabId ) const; private: typedef ::std::map< OUString, SCTAB > XclTabNameMap; @@ -194,7 +194,7 @@ public: /** Reads a CRN record and appends it to the current SUPBOOK. */ void ReadCrn( XclImpStream& rStrm ); /** Reads an EXTERNNAME record and appends it to the current SUPBOOK. */ - void ReadExternname( XclImpStream& rStrm, ExcelToSc* pFormulaConv = nullptr ); + void ReadExternname( XclImpStream& rStrm, ExcelToSc* pFormulaConv ); /** Returns true, if the specified XTI entry contains an internal reference. */ bool IsSelfRef( sal_uInt16 nXtiIndex ) const; diff --git a/sc/source/filter/inc/xiname.hxx b/sc/source/filter/inc/xiname.hxx index ca3b8dc3a36c..969fdae70520 100644 --- a/sc/source/filter/inc/xiname.hxx +++ b/sc/source/filter/inc/xiname.hxx @@ -94,7 +94,7 @@ public: @param nScTab The sheet index for local names or SCTAB_MAX for global names. If no local name is found, tries to find a matching global name. @return Pointer to the defined name or 0 on error. */ - const XclImpName* FindName( const OUString& rXclName, SCTAB nScTab = SCTAB_MAX ) const; + const XclImpName* FindName( const OUString& rXclName, SCTAB nScTab ) const; /** Returns the defined name specified by its Excel index. @param nXclNameIdx The index of the internal defined name. diff --git a/sc/source/filter/inc/xistyle.hxx b/sc/source/filter/inc/xistyle.hxx index 0237d5007c52..ba87178a9e64 100644 --- a/sc/source/filter/inc/xistyle.hxx +++ b/sc/source/filter/inc/xistyle.hxx @@ -403,7 +403,7 @@ public: void ApplyPatternToAttrList( ::std::list<ScAttrEntry>& rAttrs, SCROW nRow1, SCROW nRow2, - sal_uInt32 nForceScNumFmt = NUMBERFORMAT_ENTRY_NOT_FOUND); + sal_uInt32 nForceScNumFmt); /** Inserts all formatting attributes to the specified area in the Calc document. @param nForcedNumFmt If not set to NUMBERFORMAT_ENTRY_NOT_FOUND, it will overwrite diff --git a/sc/source/filter/inc/xlescher.hxx b/sc/source/filter/inc/xlescher.hxx index 3f8bde8a6c5d..421cd7c78b45 100644 --- a/sc/source/filter/inc/xlescher.hxx +++ b/sc/source/filter/inc/xlescher.hxx @@ -428,11 +428,11 @@ public: css::script::ScriptEventDescriptor& rDescriptor, XclTbxEventType eEventType, const OUString& rXclMacroName, - SfxObjectShell* pDocShell = nullptr ); + SfxObjectShell* pDocShell ); /** Tries to extract an Excel macro name from the passed macro descriptor. */ static OUString ExtractFromMacroDescriptor( const css::script::ScriptEventDescriptor& rDescriptor, - XclTbxEventType eEventType, SfxObjectShell* pShell = nullptr ); + XclTbxEventType eEventType, SfxObjectShell* pShell ); }; #endif diff --git a/sc/source/filter/inc/xlstyle.hxx b/sc/source/filter/inc/xlstyle.hxx index 187b0356a598..b83a646f0ae5 100644 --- a/sc/source/filter/inc/xlstyle.hxx +++ b/sc/source/filter/inc/xlstyle.hxx @@ -421,7 +421,7 @@ public: ScfPropertySet& rPropSet, XclFontPropSetType eType, const XclFontData& rFontData, bool bHasWstrn, bool bHasAsian, bool bHasCmplx, - const Color* pFontColor = nullptr ); + const Color* pFontColor ); private: /** Returns a chart property set helper according to the passed script type. */ diff --git a/sc/source/filter/inc/xltools.hxx b/sc/source/filter/inc/xltools.hxx index ca3965bbf17a..89d8531bf116 100644 --- a/sc/source/filter/inc/xltools.hxx +++ b/sc/source/filter/inc/xltools.hxx @@ -234,7 +234,7 @@ public: // Basic macro names ------------------------------------------------------ /** Returns the full StarBasic macro URL from an Excel macro name. */ - static OUString GetSbMacroUrl( const OUString& rMacroName, SfxObjectShell* pDocShell = nullptr ); + static OUString GetSbMacroUrl( const OUString& rMacroName, SfxObjectShell* pDocShell ); /** Returns the Excel macro name from a full StarBasic macro URL. */ static OUString GetXclMacroName( const OUString& rSbMacroUrl ); diff --git a/sc/source/ui/attrdlg/scdlgfact.hxx b/sc/source/ui/attrdlg/scdlgfact.hxx index f55e48328041..f48771faf6a2 100644 --- a/sc/source/ui/attrdlg/scdlgfact.hxx +++ b/sc/source/ui/attrdlg/scdlgfact.hxx @@ -244,7 +244,7 @@ class AbstractScInsertTableDlg_Impl : public AbstractScInsertTableDlg virtual ScDocShell* GetDocShellTables() override; virtual bool IsTableBefore() override; virtual sal_uInt16 GetTableCount() override; - virtual const OUString* GetNextTable( sal_uInt16* pN = nullptr ) override; + virtual const OUString* GetNextTable( sal_uInt16* pN ) override; }; @@ -283,7 +283,7 @@ class AbstractScMoveTableDlg_Impl : public AbstractScMoveTableDlg virtual bool GetRenameTable () const override; virtual void GetTabNameString( OUString& rString ) const override; virtual void SetForceCopyTable () override; - virtual void EnableRenameTable (bool bFlag=true) override; + virtual void EnableRenameTable (bool bFlag) override; }; class AbstractScNameCreateDlg_Impl : public AbstractScNameCreateDlg @@ -418,7 +418,7 @@ public: const ScAutoFormatData* pSelFormatData, ScViewData *pViewData) override; virtual AbstractScColRowLabelDlg * CreateScColRowLabelDlg (vcl::Window* pParent, - bool bCol = false, + bool bCol, bool bRow = false) override; virtual AbstractScSortWarningDlg * CreateScSortWarningDlg(vcl::Window* pParent, const OUString& rExtendText, const OUString& rCurrentText ) override; @@ -434,7 +434,7 @@ public: virtual AbstractScDataPilotServiceDlg * CreateScDataPilotServiceDlg( vcl::Window* pParent, const std::vector<OUString>& rServices, int nId ) override; - virtual AbstractScDeleteCellDlg * CreateScDeleteCellDlg(vcl::Window* pParent, bool bDisallowCellMove = false ) override; + virtual AbstractScDeleteCellDlg * CreateScDeleteCellDlg(vcl::Window* pParent, bool bDisallowCellMove ) override; //for dataform virtual AbstractScDataFormDlg* CreateScDataFormDlg(vcl::Window* pParent, @@ -456,7 +456,7 @@ public: virtual AbstractScInsertCellDlg * CreateScInsertCellDlg( vcl::Window* pParent, int nId, - bool bDisallowCellMove = false ) override; + bool bDisallowCellMove ) override; virtual AbstractScInsertContentsDlg * CreateScInsertContentsDlg( vcl::Window* pParent, const OUString* pStrTitle = nullptr ) override; @@ -473,7 +473,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, @@ -517,7 +517,7 @@ public: sal_uInt16 nOrient ) override; virtual AbstractScNewScenarioDlg * CreateScNewScenarioDlg ( vcl::Window* pParent, const OUString& rName, - bool bEdit = false, bool bSheetProtected = false ) override; + bool bEdit, bool bSheetProtected = false ) override; virtual AbstractScShowTabDlg * CreateScShowTabDlg(vcl::Window* pParent) override; virtual AbstractScStringInputDlg * CreateScStringInputDlg ( vcl::Window* pParent, @@ -531,7 +531,7 @@ public: const OUString& rTabBgColorNoColorText, //Label for no tab color const Color& rDefaultColor ) override; //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, @@ -540,10 +540,10 @@ public: virtual SfxAbstractTabDialog * CreateScAttrDlg( vcl::Window* pParent, const SfxItemSet* pCellAttrs ) override; - virtual SfxAbstractTabDialog * CreateScHFEditDlg(vcl::Window* pParent, + virtual SfxAbstractTabDialog * CreateScHFEditDlg(vcl::Window* pParent, const SfxItemSet& rCoreSet, const OUString& rPageStyle, - sal_uInt16 nResId = RID_SCDLG_HFEDIT ) override; + sal_uInt16 nResId ) override; virtual SfxAbstractTabDialog * CreateScStyleDlg( vcl::Window* pParent, SfxStyleSheetBase& rStyleBase, diff --git a/sc/source/ui/inc/anyrefdg.hxx b/sc/source/ui/inc/anyrefdg.hxx index 280dbf7673e9..823e9e085c5f 100644 --- a/sc/source/ui/inc/anyrefdg.hxx +++ b/sc/source/ui/inc/anyrefdg.hxx @@ -84,9 +84,9 @@ public: void ShowReference(const OUString& rStr); void ReleaseFocus( formula::RefEdit* pEdit ); void HideReference( bool bDoneRefMode = true ); - void RefInputStart( formula::RefEdit* pEdit, formula::RefButton* pButton = nullptr ); - void RefInputDone( bool bForced = false ); - void ToggleCollapsed( formula::RefEdit* pEdit, formula::RefButton* pButton = nullptr ); + void RefInputStart( formula::RefEdit* pEdit, formula::RefButton* pButton ); + void RefInputDone( bool bForced ); + void ToggleCollapsed( formula::RefEdit* pEdit, formula::RefButton* pButton ); inline void SetWindow(vcl::Window* _pWindow) { m_pWindow = _pWindow; } void DoClose( sal_uInt16 nId ); diff --git a/sc/source/ui/inc/checklistmenu.hxx b/sc/source/ui/inc/checklistmenu.hxx index ea9e7edfc4b7..e5c2c2236862 100644 --- a/sc/source/ui/inc/checklistmenu.hxx +++ b/sc/source/ui/inc/checklistmenu.hxx @@ -227,7 +227,7 @@ class ScCheckListBox : public SvTreeListBox ScTabStops* mpTabStops; bool mbSeenMouseButtonDown; void CountCheckedEntries( SvTreeListEntry* pParent, sal_uLong& nCount ) const; - void CheckAllChildren( SvTreeListEntry* pEntry, bool bCheck = true ); + void CheckAllChildren( SvTreeListEntry* pEntry, bool bCheck ); public: @@ -235,8 +235,8 @@ class ScCheckListBox : public SvTreeListBox virtual ~ScCheckListBox() { disposeOnce(); } virtual void dispose() override { delete mpCheckButton; SvTreeListBox::dispose(); } void Init(); - void CheckEntry( const OUString& sName, SvTreeListEntry* pParent, bool bCheck = true ); - void CheckEntry( SvTreeListEntry* pEntry, bool bCheck = true ); + void CheckEntry( const OUString& sName, SvTreeListEntry* pParent, bool bCheck ); + void CheckEntry( SvTreeListEntry* pEntry, bool bCheck ); SvTreeListEntry* ShowCheckEntry( const OUString& sName, ScCheckListMember& rMember, bool bShow = true, bool bCheck = true ); bool IsChecked( const OUString& sName, SvTreeListEntry* pParent ); SvTreeListEntry* FindEntry( SvTreeListEntry* pParent, const OUString& sNode ); diff --git a/sc/source/ui/inc/dbdocfun.hxx b/sc/source/ui/inc/dbdocfun.hxx index ec404d4ef7b2..5a538ca12ab8 100644 --- a/sc/source/ui/inc/dbdocfun.hxx +++ b/sc/source/ui/inc/dbdocfun.hxx @@ -85,7 +85,7 @@ public: void ModifyAllDBData( const ScDBCollection& rNewColl, const std::vector<ScRange>& rDelAreaList ); - bool RepeatDB( const OUString& rDBName, bool bApi, bool bIsUnnamed=false, SCTAB aTab = 0); + bool RepeatDB( const OUString& rDBName, bool bApi, bool bIsUnnamed, SCTAB aTab = 0); bool DataPilotUpdate( ScDPObject* pOldObj, const ScDPObject* pNewObj, bool bRecord, bool bApi, bool bAllowMove = false ); diff --git a/sc/source/ui/inc/dbfunc.hxx b/sc/source/ui/inc/dbfunc.hxx index 69325bd32356..ad71348a1e56 100644 --- a/sc/source/ui/inc/dbfunc.hxx +++ b/sc/source/ui/inc/dbfunc.hxx @@ -112,7 +112,7 @@ public: void HideMarkedOutlines( bool bRecord = true ); bool OutlinePossible(bool bHide); - void UpdateCharts(bool bAllCharts = false); // Default: am Cursor + void UpdateCharts(bool bAllCharts); // Default: am Cursor static sal_uInt16 DoUpdateCharts( const ScAddress& rPos, ScDocument* pDoc, bool bAllCharts ); }; diff --git a/sc/source/ui/inc/delcodlg.hxx b/sc/source/ui/inc/delcodlg.hxx index dd6f93d77828..8edcbea01593 100644 --- a/sc/source/ui/inc/delcodlg.hxx +++ b/sc/source/ui/inc/delcodlg.hxx @@ -42,7 +42,7 @@ private: static bool bPreviousAllCheck; static InsertDeleteFlags nPreviousChecks; - void DisableChecks( bool bDelAllChecked = true ); + void DisableChecks( bool bDelAllChecked ); DECL_LINK_TYPED( DelAllHdl, Button*, void ); public: diff --git a/sc/source/ui/inc/docfunc.hxx b/sc/source/ui/inc/docfunc.hxx index aa29c7ee24ea..85a09d448e50 100644 --- a/sc/source/ui/inc/docfunc.hxx +++ b/sc/source/ui/inc/docfunc.hxx @@ -112,7 +112,7 @@ public: const ScAddress& rPos, const OUString& rText, bool bInterpret, bool bEnglish, bool bApi, const formula::FormulaGrammar::Grammar eGrammar ); - bool ShowNote( const ScAddress& rPos, bool bShow = true ); + bool ShowNote( const ScAddress& rPos, bool bShow ); void SetNoteText( const ScAddress& rPos, const OUString& rNoteText, bool bApi ); void ReplaceNote( const ScAddress& rPos, const OUString& rNoteText, const OUString* pAuthor, const OUString* pDate, bool bApi ); @@ -192,7 +192,7 @@ public: bool UnmergeCells( const ScRange& rRange, bool bRecord ); bool UnmergeCells( const ScCellMergeOption& rOption, bool bRecord ); - void SetNewRangeNames( ScRangeName* pNewRanges, bool bModifyDoc = true, SCTAB nTab = -1 ); // takes ownership of pNewRanges //nTab = -1 for local range names + void SetNewRangeNames( ScRangeName* pNewRanges, bool bModifyDoc, SCTAB nTab = -1 ); // takes ownership of pNewRanges //nTab = -1 for local range names void ModifyRangeNames( const ScRangeName& rNewRanges, SCTAB nTab = -1 ); /** * Modify all range names, global scope names as well as sheet local ones, diff --git a/sc/source/ui/inc/output.hxx b/sc/source/ui/inc/output.hxx index f5d47f6e9893..d7915538815a 100644 --- a/sc/source/ui/inc/output.hxx +++ b/sc/source/ui/inc/output.hxx @@ -299,7 +299,7 @@ public: void DrawStrings( bool bPixelToLogic = false ); /// Draw all strings, or provide Rectangle where the text (defined by rAddress) would be drawn. - Rectangle LayoutStrings(bool bPixelToLogic = false, bool bPaint = true, const ScAddress &rAddress = ScAddress()); + Rectangle LayoutStrings(bool bPixelToLogic, bool bPaint = true, const ScAddress &rAddress = ScAddress()); void DrawDocumentBackground(); void DrawBackground(vcl::RenderContext& rRenderContext); diff --git a/sc/source/ui/inc/viewfunc.hxx b/sc/source/ui/inc/viewfunc.hxx index 190232644e54..39d94a0d9b61 100644 --- a/sc/source/ui/inc/viewfunc.hxx +++ b/sc/source/ui/inc/viewfunc.hxx @@ -98,9 +98,9 @@ public: void EnterDataAtCursor( const OUString& rString ); //! Not used? SC_DLLPUBLIC void CutToClip(); - SC_DLLPUBLIC bool CopyToClip( ScDocument* pClipDoc = nullptr, bool bCut = false, bool bApi = false, + SC_DLLPUBLIC bool CopyToClip( ScDocument* pClipDoc, bool bCut = false, bool bApi = false, bool bIncludeObjects = false, bool bStopEdit = true ); - SC_DLLPUBLIC bool CopyToClip( ScDocument* pClipDoc, const ScRangeList& rRange, bool bCut = false, + SC_DLLPUBLIC bool CopyToClip( ScDocument* pClipDoc, const ScRangeList& rRange, bool bCut, bool bApi = false, bool bIncludeObjects = false, bool bStopEdit = true ); ScTransferObj* CopyToTransferable(); SC_DLLPUBLIC bool PasteFromClip( InsertDeleteFlags nFlags, ScDocument* pClipDoc, |