summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/SwNumberTree.hxx2
-rw-r--r--sw/inc/SwStyleNameMapper.hxx4
-rw-r--r--sw/inc/ndarr.hxx14
-rw-r--r--sw/inc/ndgrf.hxx4
-rw-r--r--sw/inc/ndtxt.hxx6
-rw-r--r--sw/inc/node.hxx2
-rw-r--r--sw/inc/numrule.hxx2
-rw-r--r--sw/inc/pam.hxx4
-rw-r--r--sw/inc/section.hxx8
-rw-r--r--sw/inc/shellio.hxx12
-rw-r--r--sw/inc/swabstdlg.hxx10
-rw-r--r--sw/inc/swcrsr.hxx10
-rw-r--r--sw/inc/swtable.hxx24
-rw-r--r--sw/inc/swunohelper.hxx4
-rw-r--r--sw/inc/tblsel.hxx2
-rw-r--r--sw/inc/undobj.hxx2
-rw-r--r--sw/inc/unostyle.hxx2
-rw-r--r--sw/inc/view.hxx12
-rw-r--r--sw/inc/viewopt.hxx2
-rw-r--r--sw/inc/viscrs.hxx6
20 files changed, 66 insertions, 66 deletions
diff --git a/sw/inc/SwNumberTree.hxx b/sw/inc/SwNumberTree.hxx
index dc78b6c60e29..3293963ed87a 100644
--- a/sw/inc/SwNumberTree.hxx
+++ b/sw/inc/SwNumberTree.hxx
@@ -129,7 +129,7 @@ public:
@param nDepth depth in which to add the child
*/
void AddChild( SwNumberTreeNode* pChild,
- const int nDepth = 0 );
+ const int nDepth );
/**
Remove a child.
diff --git a/sw/inc/SwStyleNameMapper.hxx b/sw/inc/SwStyleNameMapper.hxx
index 2c34d80eb088..74336563dc18 100644
--- a/sw/inc/SwStyleNameMapper.hxx
+++ b/sw/inc/SwStyleNameMapper.hxx
@@ -138,13 +138,13 @@ public:
// This gets the UI Name from the programmatic name
static const OUString& GetUIName(const OUString& rName, SwGetPoolIdFromName);
static void FillUIName(const OUString& rName, OUString& rFillName,
- SwGetPoolIdFromName, bool bDisambiguate = false);
+ SwGetPoolIdFromName, bool bDisambiguate);
// Get the programmatic Name from the UI name
static const OUString& GetProgName(const OUString& rName,
SwGetPoolIdFromName);
static void FillProgName(const OUString& rName, OUString& rFillName,
- SwGetPoolIdFromName, bool bDisambiguate = false);
+ SwGetPoolIdFromName, bool bDisambiguate);
// This gets the UI Name from the Pool ID
SW_DLLPUBLIC static void FillUIName(sal_uInt16 nId, OUString& rFillName);
diff --git a/sw/inc/ndarr.hxx b/sw/inc/ndarr.hxx
index 0d766ce3b175..9506994e9b97 100644
--- a/sw/inc/ndarr.hxx
+++ b/sw/inc/ndarr.hxx
@@ -122,7 +122,7 @@ class SW_DLLPUBLIC SwNodes
void UpdateOutlineIdx( const SwNode& ); ///< Update all OutlineNodes starting from Node.
void CopyNodes( const SwNodeRange&, const SwNodeIndex&,
- bool bNewFrames = true, bool bTableInsDummyNode = false ) const;
+ bool bNewFrames, bool bTableInsDummyNode = false ) const;
void DelDummyNodes( const SwNodeRange& rRg );
SwNodes(SwNodes const&) = delete;
@@ -144,9 +144,9 @@ public:
{
ForEach( 0, BigPtrArray::Count(), fnForEach, pArgs );
}
- void ForEach( sal_uLong nStt, sal_uLong nEnd, FnForEach_SwNodes fnForEach, void* pArgs = nullptr );
+ void ForEach( sal_uLong nStt, sal_uLong nEnd, FnForEach_SwNodes fnForEach, void* pArgs );
void ForEach( const SwNodeIndex& rStart, const SwNodeIndex& rEnd,
- FnForEach_SwNodes fnForEach, void* pArgs = nullptr );
+ FnForEach_SwNodes fnForEach, void* pArgs );
/// A still empty section.
SwNode& GetEndOfPostIts() const { return *m_pEndOfPostIts; }
@@ -245,7 +245,7 @@ public:
static SwTableNode* InsertTable( const SwNodeIndex& rNdIdx,
sal_uInt16 nBoxes, SwTextFormatColl* pContentTextColl,
- sal_uInt16 nLines = 0, sal_uInt16 nRepeat = 0,
+ sal_uInt16 nLines, sal_uInt16 nRepeat = 0,
SwTextFormatColl* pHeadlineTextColl = nullptr,
const SwAttrSet * pAttrSet = nullptr);
@@ -255,7 +255,7 @@ public:
SwTableLineFormat* pLineFormat,
SwTableBoxFormat* pBoxFormat,
SwTextFormatColl* pTextColl,
- SwUndoTextToTable* pUndo = nullptr );
+ SwUndoTextToTable* pUndo );
static SwNodeRange * ExpandRangeForTableBox(const SwNodeRange & rRange);
@@ -269,7 +269,7 @@ public:
/// Create regular text from what was table.
bool TableToText( const SwNodeRange& rRange, sal_Unicode cCh,
- SwUndoTableToText* = nullptr );
+ SwUndoTableToText* );
/// Is in untbl.cxx and may called only by Undo-object.
SwTableNode* UndoTableToText( sal_uLong nStt, sal_uLong nEnd,
const SwTableToTextSaves& rSavedData );
@@ -311,7 +311,7 @@ public:
with that before rFrameIdx and pEnd at the back.
If no valid node is found, return 0. rFrameIdx points to the node with frames. **/
SwNode* FindPrvNxtFrameNode( SwNodeIndex& rFrameIdx,
- const SwNode* pEnd = nullptr ) const;
+ const SwNode* pEnd ) const;
SwNode * DocumentSectionStartNode(SwNode * pNode) const;
SwNode * DocumentSectionEndNode(SwNode * pNode) const;
diff --git a/sw/inc/ndgrf.hxx b/sw/inc/ndgrf.hxx
index 8034c09bb674..6394db3a5290 100644
--- a/sw/inc/ndgrf.hxx
+++ b/sw/inc/ndgrf.hxx
@@ -126,8 +126,8 @@ public:
void SetGraphic(const Graphic& rGraphic, const OUString& rLink);
/// wrappers for non-const calls at GraphicObject
- void StartGraphicAnimation(OutputDevice* pOut, const Point& rPt, const Size& rSz, long nExtraData = 0, const GraphicAttr* pAttr = nullptr, GraphicManagerDrawFlags nFlags = GraphicManagerDrawFlags::STANDARD, OutputDevice* pFirstFrameOutDev = nullptr) { maGrfObj.StartAnimation(pOut, rPt, rSz, nExtraData, pAttr, nFlags, pFirstFrameOutDev); }
- void StopGraphicAnimation(OutputDevice* pOut = nullptr, long nExtraData = 0) { maGrfObj.StopAnimation(pOut, nExtraData); }
+ void StartGraphicAnimation(OutputDevice* pOut, const Point& rPt, const Size& rSz, long nExtraData, const GraphicAttr* pAttr = nullptr, GraphicManagerDrawFlags nFlags = GraphicManagerDrawFlags::STANDARD, OutputDevice* pFirstFrameOutDev = nullptr) { maGrfObj.StartAnimation(pOut, rPt, rSz, nExtraData, pAttr, nFlags, pFirstFrameOutDev); }
+ void StopGraphicAnimation(OutputDevice* pOut, long nExtraData = 0) { maGrfObj.StopAnimation(pOut, nExtraData); }
virtual Size GetTwipSize() const override;
void SetTwipSize( const Size& rSz );
diff --git a/sw/inc/ndtxt.hxx b/sw/inc/ndtxt.hxx
index 2abdf1149e40..157038a603af 100644
--- a/sw/inc/ndtxt.hxx
+++ b/sw/inc/ndtxt.hxx
@@ -150,7 +150,7 @@ class SW_DLLPUBLIC SwTextNode: public SwContentNode, public ::sfx2::Metadatable
SAL_DLLPRIVATE void CalcHiddenCharFlags() const;
- SAL_DLLPRIVATE SwNumRule * GetNumRule_(bool bInParent = true) const;
+ SAL_DLLPRIVATE SwNumRule * GetNumRule_(bool bInParent) const;
SAL_DLLPRIVATE void SetLanguageAndFont( const SwPaM &rPaM,
LanguageType nLang, sal_uInt16 nLangWhichId,
@@ -688,7 +688,7 @@ public:
const bool bAddSpaceAfterListLabelStr = false,
const bool bWithSpacesForLevel = false,
const bool bWithFootnote = true ) const;
- bool GetExpandText( SwTextNode& rDestNd, const SwIndex* pDestIdx = nullptr,
+ bool GetExpandText( SwTextNode& rDestNd, const SwIndex* pDestIdx,
sal_Int32 nIdx = 0, sal_Int32 nLen = -1,
bool bWithNum = false, bool bWithFootnote = true,
bool bReplaceTabsWithSpaces = false ) const;
@@ -743,7 +743,7 @@ public:
/// change text to Upper/Lower/Hiragana/Katagana/...
void TransliterateText( utl::TransliterationWrapper& rTrans,
sal_Int32 nStart, sal_Int32 nEnd,
- SwUndoTransliterate* pUndo = nullptr );
+ SwUndoTransliterate* pUndo );
/// count words in given range - returns true if we refreshed out count
bool CountWords( SwDocStat& rStat, sal_Int32 nStart, sal_Int32 nEnd ) const;
diff --git a/sw/inc/node.hxx b/sw/inc/node.hxx
index 8a7bee5e8d3b..b662c816eb49 100644
--- a/sw/inc/node.hxx
+++ b/sw/inc/node.hxx
@@ -257,7 +257,7 @@ public:
IDocumentListItems& getIDocumentListItems();
/// Is node in the visible area of the Shell?
- bool IsInVisibleArea( SwViewShell const * pSh = nullptr ) const;
+ bool IsInVisibleArea( SwViewShell const * pSh ) const;
/// Is node in an protected area?
bool IsInProtectSect() const;
/** Is node in something that is protected (range, frame,
diff --git a/sw/inc/numrule.hxx b/sw/inc/numrule.hxx
index c9c012ab3104..1bf823ef2193 100644
--- a/sw/inc/numrule.hxx
+++ b/sw/inc/numrule.hxx
@@ -173,7 +173,7 @@ public:
const unsigned int _nRestrictToThisLevel = MAXLEVEL,
Extremities* pExtremities = nullptr ) const;
OUString MakeRefNumString( const SwNodeNum& rNodeNum,
- const bool bInclSuperiorNumLabels = false,
+ const bool bInclSuperiorNumLabels,
const sal_uInt8 nRestrictInclToThisLevel = 0 ) const;
/**
diff --git a/sw/inc/pam.hxx b/sw/inc/pam.hxx
index 2b23457eb442..39370a67aa06 100644
--- a/sw/inc/pam.hxx
+++ b/sw/inc/pam.hxx
@@ -164,7 +164,7 @@ class SW_DLLPUBLIC SwPaM : public sw::Ring<SwPaM>
SwPosition * m_pMark; ///< points at either m_Bound1 or m_Bound2
bool m_bIsInFrontOfLabel;
- SwPaM* MakeRegion( SwMoveFn fnMove, const SwPaM * pOrigRg = nullptr );
+ SwPaM* MakeRegion( SwMoveFn fnMove, const SwPaM * pOrigRg );
SwPaM(SwPaM const& rPaM) = delete;
@@ -202,7 +202,7 @@ public:
bool Find( const SwFormat& rFormat,
SwMoveFn fnMove = fnMoveForward,
const SwPaM *pPam =nullptr, bool bInReadOnly = false);
- bool Find( const SfxPoolItem& rAttr, bool bValue = true,
+ bool Find( const SfxPoolItem& rAttr, bool bValue,
SwMoveFn fnMove = fnMoveForward,
const SwPaM *pPam =nullptr, bool bInReadOnly = false );
bool Find( const SfxItemSet& rAttr, bool bNoColls,
diff --git a/sw/inc/section.hxx b/sw/inc/section.hxx
index 4fea7232048c..bb5db7aa160f 100644
--- a/sw/inc/section.hxx
+++ b/sw/inc/section.hxx
@@ -96,7 +96,7 @@ public:
void SetType(SectionType const eNew) { m_eType = eNew; }
bool IsHidden() const { return m_bHidden; }
- void SetHidden(bool const bFlag = true) { m_bHidden = bFlag; }
+ void SetHidden(bool const bFlag) { m_bHidden = bFlag; }
bool IsHiddenFlag() const { return m_bHiddenFlag; }
SAL_DLLPRIVATE void
@@ -108,7 +108,7 @@ public:
void SetEditInReadonlyFlag(bool const bFlag)
{ m_bEditInReadonlyFlag = bFlag; }
- void SetCondHidden(bool const bFlag = true) { m_bCondHiddenFlag = bFlag; }
+ void SetCondHidden(bool const bFlag) { m_bCondHiddenFlag = bFlag; }
bool IsCondHidden() const { return m_bCondHiddenFlag; }
const OUString& GetCondition() const { return m_sCondition; }
@@ -131,7 +131,7 @@ public:
{ return (DDE_LINK_SECTION == m_eType) || (FILE_LINK_SECTION == m_eType); }
bool IsConnectFlag() const { return m_bConnectFlag; }
- void SetConnectFlag(bool const bFlag = true){ m_bConnectFlag = bFlag; }
+ void SetConnectFlag(bool const bFlag){ m_bConnectFlag = bFlag; }
static OUString CollapseWhiteSpaces(const OUString& sName);
};
@@ -189,7 +189,7 @@ public:
bool IsProtectFlag() const { return m_Data.IsProtectFlag(); }
bool IsEditInReadonlyFlag() const { return m_Data.IsEditInReadonlyFlag(); }
- void SetCondHidden(bool const bFlag = true);
+ void SetCondHidden(bool const bFlag);
bool IsCondHidden() const { return m_Data.IsCondHidden(); }
// Query (also for parents) if this section is to be hidden.
bool CalcHiddenFlag() const;
diff --git a/sw/inc/shellio.hxx b/sw/inc/shellio.hxx
index 56880e3de5f2..a18f65be3fb1 100644
--- a/sw/inc/shellio.hxx
+++ b/sw/inc/shellio.hxx
@@ -407,10 +407,10 @@ public:
Writer();
virtual ~Writer();
- virtual sal_uLong Write( SwPaM&, SfxMedium&, const OUString* = nullptr );
- sal_uLong Write( SwPaM&, SvStream&, const OUString* = nullptr );
- virtual sal_uLong Write( SwPaM&, const css::uno::Reference < css::embed::XStorage >&, const OUString* = nullptr, SfxMedium* = nullptr );
- virtual sal_uLong Write( SwPaM&, SotStorage&, const OUString* = nullptr );
+ virtual sal_uLong Write( SwPaM&, SfxMedium&, const OUString* );
+ sal_uLong Write( SwPaM&, SvStream&, const OUString* );
+ virtual sal_uLong Write( SwPaM&, const css::uno::Reference < css::embed::XStorage >&, const OUString*, SfxMedium* = nullptr );
+ virtual sal_uLong Write( SwPaM&, SotStorage&, const OUString* );
virtual void SetupFilterOptions(SfxMedium& rMedium);
@@ -475,8 +475,8 @@ public:
virtual bool IsStgWriter() const override;
- virtual sal_uLong Write( SwPaM&, const css::uno::Reference < css::embed::XStorage >&, const OUString* = nullptr, SfxMedium* = nullptr ) override;
- virtual sal_uLong Write( SwPaM&, SotStorage&, const OUString* = nullptr ) override;
+ virtual sal_uLong Write( SwPaM&, const css::uno::Reference < css::embed::XStorage >&, const OUString*, SfxMedium* = nullptr ) override;
+ virtual sal_uLong Write( SwPaM&, SotStorage&, const OUString* ) override;
SotStorage& GetStorage() const { return *pStg; }
};
diff --git a/sw/inc/swabstdlg.hxx b/sw/inc/swabstdlg.hxx
index 16ed380f1567..47ffb8dd99d4 100644
--- a/sw/inc/swabstdlg.hxx
+++ b/sw/inc/swabstdlg.hxx
@@ -349,7 +349,7 @@ public:
virtual SfxAbstractTabDialog * CreateSwFootNoteOptionDlg(vcl::Window *pParent, SwWrtShell &rSh) = 0;
virtual AbstractDropDownFieldDialog * CreateDropDownFieldDialog(SwWrtShell &rSh,
- SwField* pField, bool bNextButton = false) = 0;
+ SwField* pField, bool bNextButton) = 0;
virtual SfxAbstractTabDialog* CreateSwEnvDlg ( vcl::Window* pParent, const SfxItemSet& rSet, SwWrtShell* pWrtSh, Printer* pPrt, bool bInsert ) = 0;
virtual AbstractSwLabDlg* CreateSwLabDlg(const SfxItemSet& rSet,
@@ -360,7 +360,7 @@ public:
virtual SfxAbstractTabDialog* CreateSwParaDlg ( vcl::Window *pParent,
SwView& rVw,
const SfxItemSet& rCoreSet,
- const OUString *pCollName = nullptr,
+ const OUString *pCollName,
bool bDraw = false,
const OString& sDefPage = OString() ) = 0;
@@ -399,14 +399,14 @@ public:
virtual SfxAbstractApplyTabDialog* CreateTemplateDialog(vcl::Window* pParent,
SfxStyleSheetBase& rBase,
SfxStyleFamily nRegion,
- const OString& sPage = OString(),
+ const OString& sPage,
SwWrtShell* pActShell = nullptr,
bool bNew = false) = 0;
virtual AbstractGlossaryDlg* CreateGlossaryDlg(SfxViewFrame* pViewFrame,
SwGlossaryHdl* pGlosHdl,
SwWrtShell *pWrtShell) = 0;
virtual AbstractFieldInputDlg* CreateFieldInputDlg(vcl::Window *pParent,
- SwWrtShell &rSh, SwField* pField, bool bNextButton = false) = 0;
+ SwWrtShell &rSh, SwField* pField, bool bNextButton) = 0;
virtual AbstractInsFootNoteDlg* CreateInsFootNoteDlg(vcl::Window * pParent,
SwWrtShell &rSh, bool bEd = false) = 0;
virtual VclAbstractDialog* CreateTitlePageDlg ( vcl::Window * pParent ) = 0;
@@ -430,7 +430,7 @@ public:
virtual AbstractMultiTOXTabDialog* CreateMultiTOXTabDialog(
vcl::Window* pParent, const SfxItemSet& rSet,
SwWrtShell &rShell,
- SwTOXBase* pCurTOX, sal_uInt16 nToxType = USHRT_MAX,
+ SwTOXBase* pCurTOX, sal_uInt16 nToxType,
bool bGlobal = false) = 0;
virtual AbstractEditRegionDlg* CreateEditRegionDlg(vcl::Window* pParent, SwWrtShell& rWrtSh) = 0;
virtual AbstractInsertSectionTabDialog* CreateInsertSectionTabDialog(
diff --git a/sw/inc/swcrsr.hxx b/sw/inc/swcrsr.hxx
index a7d07829dc62..9d36721642c1 100644
--- a/sw/inc/swcrsr.hxx
+++ b/sw/inc/swcrsr.hxx
@@ -106,7 +106,7 @@ public:
virtual SwCursor* Create( SwPaM* pRing = nullptr ) const;
virtual short MaxReplaceArived(); //returns RET_YES/RET_CANCEL/RET_NO
- virtual void SaveTableBoxContent( const SwPosition* pPos = nullptr );
+ virtual void SaveTableBoxContent( const SwPosition* pPos );
void FillFindPos( SwDocPositions ePos, SwPosition& rPos ) const;
SwMoveFnCollection* MakeFindRange( SwDocPositions, SwDocPositions,
@@ -139,7 +139,7 @@ public:
bool GoEndWord();
bool GoNextWord();
bool GoPrevWord();
- bool SelectWord( SwViewShell* pViewShell, const Point* pPt = nullptr );
+ bool SelectWord( SwViewShell* pViewShell, const Point* pPt );
// API versions of above functions (will be used with a different
// WordType for the break iterator)
@@ -150,7 +150,7 @@ public:
bool GoEndWordWT( sal_Int16 nWordType );
bool GoNextWordWT( sal_Int16 nWordType );
bool GoPrevWordWT( sal_Int16 nWordType );
- bool SelectWordWT( SwViewShell* pViewShell, sal_Int16 nWordType, const Point* pPt = nullptr );
+ bool SelectWordWT( SwViewShell* pViewShell, sal_Int16 nWordType, const Point* pPt );
enum SentenceMoveType
{
@@ -168,8 +168,8 @@ public:
virtual bool LeftRight( bool bLeft, sal_uInt16 nCnt, sal_uInt16 nMode,
bool bAllowVisual, bool bSkipHidden, bool bInsertCursor );
bool UpDown( bool bUp, sal_uInt16 nCnt, Point* pPt, long nUpDownX );
- bool LeftRightMargin( bool bLeftMargin, bool bAPI = false );
- bool IsAtLeftRightMargin( bool bLeftMargin, bool bAPI = false ) const;
+ bool LeftRightMargin( bool bLeftMargin, bool bAPI );
+ bool IsAtLeftRightMargin( bool bLeftMargin, bool bAPI ) const;
bool SttEndDoc( bool bSttDoc );
bool GoPrevNextCell( bool bNext, sal_uInt16 nCnt );
diff --git a/sw/inc/swtable.hxx b/sw/inc/swtable.hxx
index 665d7ff86276..840bc56bc301 100644
--- a/sw/inc/swtable.hxx
+++ b/sw/inc/swtable.hxx
@@ -210,7 +210,7 @@ public:
// It's not allowed to change the table model after the first call of one of these functions.
bool Merge( SwDoc* pDoc, const SwSelBoxes& rBoxes, const SwSelBoxes& rMerged,
- SwTableBox* pMergeBox, SwUndoTableMerge* pUndo = nullptr )
+ SwTableBox* pMergeBox, SwUndoTableMerge* pUndo )
{
#ifdef DBG_UTIL
m_bDontChangeModel = true;
@@ -218,7 +218,7 @@ public:
return m_bNewModel ? NewMerge( pDoc, rBoxes, rMerged, pMergeBox, pUndo ) :
OldMerge( pDoc, rBoxes, pMergeBox, pUndo );
}
- bool SplitRow( SwDoc* pDoc, const SwSelBoxes& rBoxes, sal_uInt16 nCnt=1,
+ bool SplitRow( SwDoc* pDoc, const SwSelBoxes& rBoxes, sal_uInt16 nCnt,
bool bSameHeight = false )
{
#ifdef DBG_UTIL
@@ -233,13 +233,13 @@ public:
void PrepareDeleteCol( long nMin, long nMax );
bool InsertCol( SwDoc*, const SwSelBoxes& rBoxes,
- sal_uInt16 nCnt = 1, bool bBehind = true );
+ sal_uInt16 nCnt, bool bBehind = true );
bool InsertRow( SwDoc*, const SwSelBoxes& rBoxes,
- sal_uInt16 nCnt = 1, bool bBehind = true );
+ sal_uInt16 nCnt, bool bBehind = true );
void PrepareDelBoxes( const SwSelBoxes& rBoxes );
bool DeleteSel( SwDoc*, const SwSelBoxes& rBoxes, const SwSelBoxes* pMerged,
SwUndo* pUndo, const bool bDelMakeFrames, const bool bCorrBorder );
- bool SplitCol( SwDoc* pDoc, const SwSelBoxes& rBoxes, sal_uInt16 nCnt=1 );
+ bool SplitCol( SwDoc* pDoc, const SwSelBoxes& rBoxes, sal_uInt16 nCnt );
void FindSuperfluousRows( SwSelBoxes& rBoxes )
{ FindSuperfluousRows_( rBoxes, nullptr, nullptr ); }
@@ -268,9 +268,9 @@ public:
bool bCpyName = false ) const;
// Copy table in this
bool InsTable( const SwTable& rCpyTable, const SwNodeIndex&,
- SwUndoTableCpyTable* pUndo = nullptr );
+ SwUndoTableCpyTable* pUndo );
bool InsTable( const SwTable& rCpyTable, const SwSelBoxes&,
- SwUndoTableCpyTable* pUndo = nullptr );
+ SwUndoTableCpyTable* pUndo );
bool InsNewTable( const SwTable& rCpyTable, const SwSelBoxes&,
SwUndoTableCpyTable* pUndo );
// Copy headline of table (with content!) into an other one.
@@ -430,9 +430,9 @@ public:
sal_uLong GetSttIdx() const;
// Search next/previous box with content.
- SwTableBox* FindNextBox( const SwTable&, const SwTableBox* =nullptr,
+ SwTableBox* FindNextBox( const SwTable&, const SwTableBox*,
bool bOvrTableLns=true ) const;
- SwTableBox* FindPreviousBox( const SwTable&, const SwTableBox* =nullptr ) const;
+ SwTableBox* FindPreviousBox( const SwTable&, const SwTableBox* ) const;
// Return name of this box. It is determined dynamically and
// is calculated from the position in the lines/boxes/table.
OUString GetName() const;
@@ -443,7 +443,7 @@ public:
// width or height when inserting cols or rows
Point GetCoordinates() const;
- bool IsInHeadline( const SwTable* pTable = nullptr ) const;
+ bool IsInHeadline( const SwTable* pTable ) const;
// Contains box contents, that can be formatted as a number?
bool HasNumContent( double& rNum, sal_uInt32& rFormatIndex,
@@ -479,9 +479,9 @@ public:
sal_uInt16 nMaxStep = USHRT_MAX ) const
{ return const_cast<SwTableBox*>(this)->FindStartOfRowSpan( rTable, nMaxStep ); }
- SwTableBox& FindEndOfRowSpan( const SwTable&, sal_uInt16 nMaxStep = USHRT_MAX );
+ SwTableBox& FindEndOfRowSpan( const SwTable&, sal_uInt16 nMaxStep );
const SwTableBox& FindEndOfRowSpan( const SwTable& rTable,
- sal_uInt16 nMaxStep = USHRT_MAX ) const
+ sal_uInt16 nMaxStep ) const
{ return const_cast<SwTableBox*>(this)->FindEndOfRowSpan( rTable, nMaxStep ); }
void RegisterToFormat( SwFormat& rFormat ) ;
};
diff --git a/sw/inc/swunohelper.hxx b/sw/inc/swunohelper.hxx
index 788e3a074040..1ac05dc1cd08 100644
--- a/sw/inc/swunohelper.hxx
+++ b/sw/inc/swunohelper.hxx
@@ -50,7 +50,7 @@ SW_DLLPUBLIC bool UCB_DeleteFile( const OUString& rURL );
// copy/move the file to a new location
bool UCB_CopyFile( const OUString& rURL, const OUString& rNewURL,
- bool bCopyIsMove = false );
+ bool bCopyIsMove );
// is the URL on the current system case sensitive?
SW_DLLPUBLIC bool UCB_IsCaseSensitiveFileName( const OUString& rURL );
@@ -65,7 +65,7 @@ SW_DLLPUBLIC bool UCB_IsReadOnlyFileName( const OUString& rURL );
// !! objects must be deleted from the caller!!
bool UCB_GetFileListOfFolder( const OUString& rURL,
std::vector<OUString>& rList,
- const OUString* pExtension = nullptr,
+ const OUString* pExtension,
std::vector<DateTime*>* pDateTimeList = nullptr );
// is the URL an existing file?
diff --git a/sw/inc/tblsel.hxx b/sw/inc/tblsel.hxx
index f49fc29babdc..88cede16fa5c 100644
--- a/sw/inc/tblsel.hxx
+++ b/sw/inc/tblsel.hxx
@@ -104,7 +104,7 @@ bool IsFrameInTableSel( const SwRect& rUnion, const SwFrame* pCell );
// i.e. boxes are added if some overlap at the sides.
// Additionally a new box is created and filled with the relevant content.
void GetMergeSel( const SwPaM& rPam, SwSelBoxes& rBoxes,
- SwTableBox** ppMergeBox, SwUndoTableMerge* pUndo = nullptr );
+ SwTableBox** ppMergeBox, SwUndoTableMerge* pUndo );
// Check if selected boxes allow for a valid merge.
sal_uInt16 CheckMergeSel( const SwPaM& rPam );
diff --git a/sw/inc/undobj.hxx b/sw/inc/undobj.hxx
index 14e099fd93de..0913cea9bbbb 100644
--- a/sw/inc/undobj.hxx
+++ b/sw/inc/undobj.hxx
@@ -155,7 +155,7 @@ protected:
// MoveTo: moves from the NodesArray into the UndoNodesArray.
// MoveFrom: moves from the UndoNodesArray into the NodesArray.
static void MoveToUndoNds( SwPaM& rPam,
- SwNodeIndex* pNodeIdx = nullptr,
+ SwNodeIndex* pNodeIdx,
sal_uLong* pEndNdIdx = nullptr, sal_Int32 * pEndCntIdx = nullptr );
static void MoveFromUndoNds( SwDoc& rDoc, sal_uLong nNodeIdx,
SwPosition& rInsPos,
diff --git a/sw/inc/unostyle.hxx b/sw/inc/unostyle.hxx
index 8d2bfcc20a78..f20d5945e8e2 100644
--- a/sw/inc/unostyle.hxx
+++ b/sw/inc/unostyle.hxx
@@ -373,7 +373,7 @@ class SwXTextCellStyle : public cppu::WeakImplHelper
* @param pParentName Optional output. Pointer to a OUString where parsed parent name will be returned.
* @return Pointer to a SwBoxAutoFormat, nullptr if not found.
*/
- static SwBoxAutoFormat* GetBoxAutoFormat(SwDocShell* pDocShell, const OUString& sName, OUString* pParentName = nullptr);
+ static SwBoxAutoFormat* GetBoxAutoFormat(SwDocShell* pDocShell, const OUString& sName, OUString* pParentName);
/// returns box format assigned to this style
SwBoxAutoFormat* GetBoxFormat();
/// Sets the address of SwBoxAutoFormat this style is bound to. Usable only when style is physical.
diff --git a/sw/inc/view.hxx b/sw/inc/view.hxx
index ff08c5d5767d..fe6c780a42ae 100644
--- a/sw/inc/view.hxx
+++ b/sw/inc/view.hxx
@@ -260,7 +260,7 @@ class SW_DLLPUBLIC SwView: public SfxViewShell
// methods for searching
// set search context
- SAL_DLLPRIVATE bool SearchAndWrap(bool bApi = false);
+ SAL_DLLPRIVATE bool SearchAndWrap(bool bApi);
SAL_DLLPRIVATE bool SearchAll();
SAL_DLLPRIVATE sal_uLong FUNC_Search( const SwSearchOptions& rOptions );
SAL_DLLPRIVATE void Replace();
@@ -277,7 +277,7 @@ class SW_DLLPUBLIC SwView: public SfxViewShell
inline long GetYScroll() const;
SAL_DLLPRIVATE Point AlignToPixel(const Point& rPt) const;
SAL_DLLPRIVATE void CalcPt( Point* pPt,const Rectangle& rRect,
- sal_uInt16 nRangeX = USHRT_MAX,
+ sal_uInt16 nRangeX,
sal_uInt16 nRangeY = USHRT_MAX);
SAL_DLLPRIVATE bool GetPageScrollUpOffset(SwTwips& rOff) const;
@@ -309,8 +309,8 @@ class SW_DLLPUBLIC SwView: public SfxViewShell
// used for spell checking and text conversion
SAL_DLLPRIVATE void SpellStart( SvxSpellArea eSpell, bool bStartDone,
- bool bEndDone, SwConversionArgs *pConvArgs = nullptr );
- SAL_DLLPRIVATE void SpellEnd( SwConversionArgs *pConvArgs = nullptr );
+ bool bEndDone, SwConversionArgs *pConvArgs );
+ SAL_DLLPRIVATE void SpellEnd( SwConversionArgs *pConvArgs );
SAL_DLLPRIVATE void HyphStart( SvxSpellArea eSpell );
SAL_DLLPRIVATE void SpellKontext(bool bOn = true)
@@ -326,7 +326,7 @@ class SW_DLLPUBLIC SwView: public SfxViewShell
SAL_DLLPRIVATE void SetZoom_( const Size &rEditSz,
SvxZoomType eZoomType,
- short nFactor = 100,
+ short nFactor,
bool bViewOnly = false);
SAL_DLLPRIVATE void CalcAndSetBorderPixel( SvBorder &rToFill, bool bInner );
@@ -621,7 +621,7 @@ public:
//public fuer D&D
int InsertGraphic( const OUString &rPath, const OUString &rFilter,
- bool bLink = true, GraphicFilter *pFlt = nullptr,
+ bool bLink, GraphicFilter *pFlt = nullptr,
Graphic* pPreviewGrf = nullptr );
void ExecuteScan( SfxRequest& rReq );
diff --git a/sw/inc/viewopt.hxx b/sw/inc/viewopt.hxx
index ae6e43145d5d..e3e2eec30bf0 100644
--- a/sw/inc/viewopt.hxx
+++ b/sw/inc/viewopt.hxx
@@ -264,7 +264,7 @@ public:
{ b ? (m_nCoreOptions |= ViewOptFlags1::Postits ) : ( m_nCoreOptions &= ~ViewOptFlags1::Postits); }
static void PaintPostIts( OutputDevice *pOut, const SwRect &rRect,
bool bIsScript );
- static sal_uInt16 GetPostItsWidth( const OutputDevice *pOut = nullptr );
+ static sal_uInt16 GetPostItsWidth( const OutputDevice *pOut );
inline bool IsShowHiddenChar(bool bHard = false) const
{ return !m_bReadonly && (m_nCoreOptions & ViewOptFlags1::CharHidden) &&
diff --git a/sw/inc/viscrs.hxx b/sw/inc/viscrs.hxx
index dcf1237e511a..cd7204dd9fcb 100644
--- a/sw/inc/viscrs.hxx
+++ b/sw/inc/viscrs.hxx
@@ -155,9 +155,9 @@ public:
virtual SwCursor* Create( SwPaM* pRing = nullptr ) const override;
virtual short MaxReplaceArived() override; //returns RET_YES/RET_CANCEL/RET_NO
- virtual void SaveTableBoxContent( const SwPosition* pPos = nullptr ) override;
+ virtual void SaveTableBoxContent( const SwPosition* pPos ) override;
- bool UpDown( bool bUp, sal_uInt16 nCnt = 1 );
+ bool UpDown( bool bUp, sal_uInt16 nCnt );
// true: Cursor can be set to this position.
virtual bool IsAtValidPos( bool bPoint = true ) const override;
@@ -195,7 +195,7 @@ public:
virtual SwCursor* Create( SwPaM* pRing = nullptr ) const override;
virtual short MaxReplaceArived() override; //returns RET_YES/RET_CANCEL/RET_NO
- virtual void SaveTableBoxContent( const SwPosition* pPos = nullptr ) override;
+ virtual void SaveTableBoxContent( const SwPosition* pPos ) override;
// true: Cursor can be set to this position.
virtual bool IsAtValidPos( bool bPoint = true ) const override;