[Libreoffice-commits] core.git: sw/inc sw/source

Noel Grandin noel.grandin at collabora.co.uk
Tue Oct 4 06:38:56 UTC 2016


 sw/inc/IDocumentUndoRedo.hxx           |    2 +-
 sw/inc/ToxTabStopTokenHandler.hxx      |    2 +-
 sw/inc/acmplwrd.hxx                    |    2 +-
 sw/inc/calc.hxx                        |    2 +-
 sw/inc/crsrsh.hxx                      |   11 +++++------
 sw/inc/crstate.hxx                     |    2 +-
 sw/inc/dbmgr.hxx                       |    4 ++--
 sw/inc/ddefld.hxx                      |    2 +-
 sw/inc/doc.hxx                         |   25 ++++++++++++-------------
 sw/inc/docstyle.hxx                    |    4 ++--
 sw/inc/docufld.hxx                     |   16 ++++++++--------
 sw/inc/dpage.hxx                       |    2 +-
 sw/inc/editsh.hxx                      |   10 +++++-----
 sw/inc/expfld.hxx                      |    6 +++---
 sw/inc/extinput.hxx                    |    2 +-
 sw/inc/fesh.hxx                        |   14 +++++++-------
 sw/inc/fldbas.hxx                      |    4 ++--
 sw/inc/fmtcol.hxx                      |    8 ++++----
 sw/inc/globdoc.hxx                     |    2 +-
 sw/inc/gotodlg.hxx                     |    2 +-
 sw/inc/iodetect.hxx                    |    2 +-
 sw/inc/ndarr.hxx                       |    2 +-
 sw/inc/ndgrf.hxx                       |   10 +++++-----
 sw/inc/ndindex.hxx                     |    2 +-
 sw/inc/ndnotxt.hxx                     |    2 +-
 sw/inc/ndole.hxx                       |    4 ++--
 sw/inc/ndtxt.hxx                       |    4 ++--
 sw/inc/shellio.hxx                     |    2 +-
 sw/inc/swtable.hxx                     |    6 +++---
 sw/inc/tblsel.hxx                      |    2 +-
 sw/inc/txatritr.hxx                    |    6 +++---
 sw/inc/txttxmrk.hxx                    |    2 +-
 sw/inc/unoparagraph.hxx                |    2 +-
 sw/inc/unotbl.hxx                      |    2 +-
 sw/inc/usrfld.hxx                      |    2 +-
 sw/inc/viewsh.hxx                      |    6 +++---
 sw/inc/viscrs.hxx                      |    2 +-
 sw/source/core/access/accportions.hxx  |    2 +-
 sw/source/core/doc/doccomp.cxx         |    2 +-
 sw/source/core/doc/tblrwcl.cxx         |    2 +-
 sw/source/core/inc/UndoManager.hxx     |    2 +-
 sw/source/core/inc/UndoNumbering.hxx   |    2 +-
 sw/source/core/inc/UndoRedline.hxx     |    2 +-
 sw/source/core/inc/cellfrm.hxx         |    2 +-
 sw/source/core/inc/docfld.hxx          |    4 ++--
 sw/source/core/inc/dview.hxx           |    2 +-
 sw/source/core/inc/frame.hxx           |    2 +-
 sw/source/core/inc/mvsave.hxx          |    2 +-
 sw/source/core/inc/objectformatter.hxx |    2 +-
 sw/source/core/inc/swcache.hxx         |    2 +-
 sw/source/core/inc/tblrwcl.hxx         |    2 +-
 sw/source/core/inc/txtfrm.hxx          |    4 ++--
 sw/source/core/inc/unobookmark.hxx     |    2 +-
 sw/source/core/inc/unofield.hxx        |    2 +-
 sw/source/core/inc/unosection.hxx      |    2 +-
 sw/source/core/inc/viewimp.hxx         |    4 ++--
 sw/source/core/text/pormulti.hxx       |    2 +-
 57 files changed, 112 insertions(+), 114 deletions(-)

New commits:
commit 480f6916eff8636fbf6b980a604c6e19a099df08
Author: Noel Grandin <noel.grandin at collabora.co.uk>
Date:   Mon Oct 3 14:32:24 2016 +0200

    loplugin:countusersofdefaultparams in sw
    
    Change-Id: I65beb17816641cff6a07379b7ba234afe26806b3
    Reviewed-on: https://gerrit.libreoffice.org/29488
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/sw/inc/IDocumentUndoRedo.hxx b/sw/inc/IDocumentUndoRedo.hxx
index d05eafd..15a9156 100644
--- a/sw/inc/IDocumentUndoRedo.hxx
+++ b/sw/inc/IDocumentUndoRedo.hxx
@@ -166,7 +166,7 @@ public:
         @return     true if there is a Redo action, false if none
     */
     virtual bool GetFirstRedoInfo(OUString *const o_pStr,
-                                  SwUndoId *const o_pId = nullptr,
+                                  SwUndoId *const o_pId,
                                   const SwView* pView = nullptr) const = 0;
 
     /** Get comments of Redo actions.
diff --git a/sw/inc/ToxTabStopTokenHandler.hxx b/sw/inc/ToxTabStopTokenHandler.hxx
index 184a60e..9fb7fb6 100644
--- a/sw/inc/ToxTabStopTokenHandler.hxx
+++ b/sw/inc/ToxTabStopTokenHandler.hxx
@@ -73,7 +73,7 @@ public:
     */
     DefaultToxTabStopTokenHandler(sal_uInt32 indexOfSectionNode, const SwPageDesc& defaultPageDescription,
             bool tabPositionIsRelativeToParagraphIndent,
-            TabStopReferencePolicy referencePolicy = TABSTOPS_RELATIVE_TO_PAGE);
+            TabStopReferencePolicy referencePolicy);
 
     /** Handle a tab stop token.
      *
diff --git a/sw/inc/acmplwrd.hxx b/sw/inc/acmplwrd.hxx
index d6101cc..e499348 100644
--- a/sw/inc/acmplwrd.hxx
+++ b/sw/inc/acmplwrd.hxx
@@ -49,7 +49,7 @@ class SwAutoCompleteWord
 
     void DocumentDying(const SwDoc& rDoc);
 public:
-    SwAutoCompleteWord( sal_uInt16 nWords = 500, sal_uInt16 nMWrdLen = 10 );
+    SwAutoCompleteWord( sal_uInt16 nWords, sal_uInt16 nMWrdLen = 10 );
     ~SwAutoCompleteWord();
 
     bool InsertWord( const OUString& rWord, SwDoc& rDoc );
diff --git a/sw/inc/calc.hxx b/sw/inc/calc.hxx
index 8389861..cbcd418 100644
--- a/sw/inc/calc.hxx
+++ b/sw/inc/calc.hxx
@@ -136,7 +136,7 @@ struct SwCalcExp : public SwHash
     const SwFieldType* pFieldType;
 
     SwCalcExp( const OUString& rStr, const SwSbxValue& rVal,
-                const SwFieldType* pFieldType = nullptr );
+                const SwFieldType* pFieldType );
 };
 
 SwHash* Find( const OUString& rSrch, SwHash* const * ppTable,
diff --git a/sw/inc/crsrsh.hxx b/sw/inc/crsrsh.hxx
index e83d9ee..ca5a772 100644
--- a/sw/inc/crsrsh.hxx
+++ b/sw/inc/crsrsh.hxx
@@ -117,7 +117,7 @@ struct SwContentAtPos
     OUString sStr;
     const SwTextAttr* pFndTextAttr;
 
-    SwContentAtPos( int eGetAtPos = 0xffff )
+    SwContentAtPos( int eGetAtPos )
         : eContentAtPos( (IsAttrAtPos)eGetAtPos )
     {
         aFnd.pField = nullptr;
@@ -289,7 +289,7 @@ protected:
     virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew) override;
 
 public:
-    SwCursorShell( SwDoc& rDoc, vcl::Window *pWin, const SwViewOption *pOpt = nullptr );
+    SwCursorShell( SwDoc& rDoc, vcl::Window *pWin, const SwViewOption *pOpt );
     // disguised copy constructor
     SwCursorShell( SwCursorShell& rShell, vcl::Window *pWin );
     virtual ~SwCursorShell() override;
@@ -374,7 +374,7 @@ public:
                 bool& bCancel,
                 FindRanges eRng,
                 const css::util::SearchOptions2* pSearchOpt,
-                const SfxItemSet* rReplSet = nullptr );
+                const SfxItemSet* rReplSet );
 
     //  Position the Cursor
     //  return values:
@@ -640,8 +640,7 @@ public:
     bool GotoHeaderText();       ///< jump from the content to the header
     bool GotoFooterText();       ///< jump from the content to the footer
     // jump to the header/footer of the given or current PageDesc
-    bool SetCursorInHdFt( size_t nDescNo,
-                        bool bInHeader = true );
+    bool SetCursorInHdFt( size_t nDescNo, bool bInHeader );
     // is point of cursor in header/footer. pbInHeader return true if it is
     // in a headerframe otherwise in a footerframe
     bool IsInHeaderFooter( bool* pbInHeader = nullptr ) const;
@@ -663,7 +662,7 @@ public:
     bool SelectNxtPrvHyperlink( bool bNext );
 
     bool GotoRefMark( const OUString& rRefMark, sal_uInt16 nSubType,
-                            sal_uInt16 nSeqNo = 0 );
+                            sal_uInt16 nSeqNo );
 
     // get the nth character from the start or end of the  current selection
     sal_Unicode GetChar( bool bEnd = true, long nOffset = 0 );
diff --git a/sw/inc/crstate.hxx b/sw/inc/crstate.hxx
index 0663b21..4d59782 100644
--- a/sw/inc/crstate.hxx
+++ b/sw/inc/crstate.hxx
@@ -41,7 +41,7 @@ struct SwFillCursorPos
     sal_uInt16 nColumnCnt;      ///< number of necessary column breaks
     sal_Int16  eOrient;      ///< paragraph alignment
     SwFillMode eMode;       ///< desired fill-up rule
-    SwFillCursorPos( SwFillMode eMd = FILL_TAB ) :
+    SwFillCursorPos( SwFillMode eMd ) :
         nParaCnt( 0 ), nTabCnt( 0 ), nSpaceCnt( 0 ), nColumnCnt( 0 ),
         eOrient( css::text::HoriOrientation::NONE ), eMode( eMd )
     {}
diff --git a/sw/inc/dbmgr.hxx b/sw/inc/dbmgr.hxx
index 5ae985d..d14b176 100644
--- a/sw/inc/dbmgr.hxx
+++ b/sw/inc/dbmgr.hxx
@@ -399,7 +399,7 @@ public:
      */
     static OUString            LoadAndRegisterDataSource(const DBConnURITypes type, const css::uno::Any &rUnoURI,
                                                          const css::uno::Reference < css::beans::XPropertySet > *pSettings,
-                                                         const OUString &rURI, const OUString *pPrefix, const OUString *pDestDir = nullptr,
+                                                         const OUString &rURI, const OUString *pPrefix, const OUString *pDestDir,
                                                          SwDocShell* pDocShell = nullptr);
     /**
      Loads a data source from file and registers it.
@@ -407,7 +407,7 @@ public:
      Convenience function, which calls GetDBunoURI and has just one mandatory parameter.
      In case of success it returns the registered name, otherwise an empty string.
      */
-    static OUString            LoadAndRegisterDataSource(const OUString& rURI, const OUString *pPrefix, const OUString *pDestDir = nullptr,
+    static OUString            LoadAndRegisterDataSource(const OUString& rURI, const OUString *pPrefix, const OUString *pDestDir,
                                                          const css::uno::Reference < css::beans::XPropertySet > *pSettings = nullptr);
 
     /// Load the embedded data source of the document and also register it.
diff --git a/sw/inc/ddefld.hxx b/sw/inc/ddefld.hxx
index 4dd9543..e663f61 100644
--- a/sw/inc/ddefld.hxx
+++ b/sw/inc/ddefld.hxx
@@ -42,7 +42,7 @@ class SW_DLLPUBLIC SwDDEFieldType : public SwFieldType
 
 public:
     SwDDEFieldType( const OUString& rName, const OUString& rCmd,
-                    SfxLinkUpdateMode = SfxLinkUpdateMode::ONCALL );
+                    SfxLinkUpdateMode );
     virtual ~SwDDEFieldType() override;
 
     const OUString& GetExpansion() const               { return aExpansion; }
diff --git a/sw/inc/doc.hxx b/sw/inc/doc.hxx
index 45d9e29..b36fb70 100644
--- a/sw/inc/doc.hxx
+++ b/sw/inc/doc.hxx
@@ -606,7 +606,7 @@ public:
      ( Start < Pos < End ) !!!
      (Required for Writers.) */
     SwPosFlyFrames GetAllFlyFormats( const SwPaM*,
-                        bool bDrawAlso = false,
+                        bool bDrawAlso,
                         bool bAsCharAlso = false ) const;
 
     // Because swrtf.cxx and define private public here now.
@@ -633,7 +633,7 @@ public:
                                  bool bCalledFromShell = false );
     SwFlyFrameFormat* MakeFlyAndMove( const SwPaM& rPam, const SfxItemSet& rSet,
                                 const SwSelBoxes* pSelBoxes,
-                                SwFrameFormat *pParent = nullptr );
+                                SwFrameFormat *pParent );
 
     //UUUU Helper that checks for unique items for DrawingLayer items of type NameOrIndex
     // and evtl. corrects that items to ensure unique names for that type. This call may
@@ -845,7 +845,7 @@ public:
     SwFrameFormat* GetFlyNum(size_t nIdx, FlyCntType eType, bool bIgnoreTextBoxes = false );
     std::vector<SwFrameFormat const*> GetFlyFrameFormats(
             FlyCntType eType,
-            bool bIgnoreTextBoxes = false);
+            bool bIgnoreTextBoxes);
 
     // Copy formats in own arrays and return them.
     SwFrameFormat  *CopyFrameFormat ( const SwFrameFormat& );
@@ -905,7 +905,7 @@ public:
     SwPageDesc& GetPageDesc(size_t const i) { return *m_PageDescs[i]; }
     SwPageDesc* FindPageDesc(const OUString& rName, size_t* pPos = nullptr) const;
     // Just searches the pointer in the m_PageDescs vector!
-    bool        ContainsPageDesc(const SwPageDesc *pDesc, size_t* pPos = nullptr) const;
+    bool        ContainsPageDesc(const SwPageDesc *pDesc, size_t* pPos) const;
 
     /** Copy the complete PageDesc - beyond document and "deep"!
      Optionally copying of PoolFormatId, -HlpId can be prevented. */
@@ -952,7 +952,7 @@ public:
                                             bool bExpand = false );
     void              InsertTableOf( sal_uLong nSttNd, sal_uLong nEndNd,
                                             const SwTOXBase& rTOX,
-                                            const SfxItemSet* pSet = nullptr );
+                                            const SfxItemSet* pSet );
     static SwTOXBase* GetCurTOX( const SwPosition& rPos );
     static const SwAttrSet& GetTOXBaseAttrSet(const SwTOXBase& rTOX);
 
@@ -1210,7 +1210,7 @@ public:
 
     // Split / concatenate boxes in table.
     bool SplitTable( const SwSelBoxes& rBoxes, bool bVert,
-                       sal_uInt16 nCnt = 1, bool bSameHeight = false );
+                       sal_uInt16 nCnt, bool bSameHeight = false );
 
     // @return enum TableMergeErr.
     sal_uInt16 MergeTable( SwPaM& rPam );
@@ -1277,11 +1277,11 @@ public:
     bool UnProtectTables( const SwPaM& rPam );
     bool HasTableAnyProtection( const SwPosition* pPos,
                               const OUString* pTableName,
-                              bool* pFullTableProtection = nullptr );
+                              bool* pFullTableProtection );
 
     // Split table at baseline position, i.e. create a new table.
     bool SplitTable( const SwPosition& rPos, sal_uInt16 eMode,
-                        bool bCalcNewSize = false );
+                        bool bCalcNewSize );
 
     /** And vice versa: rPos must be in the table that remains. The flag indicates
      whether the current table is merged with the one before or behind it. */
@@ -1333,7 +1333,7 @@ public:
     // insert section (the ODF kind of section, not the nodesarray kind)
     SwSection * InsertSwSection(SwPaM const& rRange, SwSectionData &,
             SwTOXBase const*const pTOXBase,
-            SfxItemSet const*const pAttr = nullptr, bool const bUpdate = true);
+            SfxItemSet const*const pAttr, bool const bUpdate = true);
     static sal_uInt16 IsInsRegionAvailable( const SwPaM& rRange,
                                 const SwNode** ppSttNd = nullptr );
     static SwSection* GetCurrSection( const SwPosition& rPos );
@@ -1397,7 +1397,7 @@ public:
     const SwFormatINetFormat* FindINetAttr( const OUString& rName ) const;
 
     // Call into intransparent Basic; expect possible Return String.
-    bool ExecMacro( const SvxMacro& rMacro, OUString* pRet, SbxArray* pArgs = nullptr );
+    bool ExecMacro( const SvxMacro& rMacro, OUString* pRet, SbxArray* pArgs );
 
     // Call into intransparent Basic / JavaScript.
     sal_uInt16 CallEvent( sal_uInt16 nEvent, const SwCallMouseEvent& rCallEvent,
@@ -1406,8 +1406,7 @@ public:
     /** Adjust left margin via object bar (similar to adjustment of numerations).
      One can either change the margin "by" adding or subtracting a given
      offset or set it "to" this position (bModulus = true). */
-    void MoveLeftMargin( const SwPaM& rPam, bool bRight,
-                        bool bModulus = true );
+    void MoveLeftMargin( const SwPaM& rPam, bool bRight, bool bModulus );
 
     // Query NumberFormatter.
     inline       SvNumberFormatter* GetNumberFormatter( bool bCreate = true );
@@ -1625,7 +1624,7 @@ public:
 
     SfxObjectShell* CreateCopy(bool bCallInitNew, bool bEmpty) const;
     SwNodeIndex AppendDoc(const SwDoc& rSource, sal_uInt16 nStartPageNumber,
-                 bool bDeletePrevious, int physicalPageOffset = 0,
+                 bool bDeletePrevious, int physicalPageOffset,
                  const sal_uLong nDocNo = 1);
 
     /**
diff --git a/sw/inc/docstyle.hxx b/sw/inc/docstyle.hxx
index 79411a9..cd2cc84 100644
--- a/sw/inc/docstyle.hxx
+++ b/sw/inc/docstyle.hxx
@@ -175,7 +175,7 @@ class SwStyleSheetIterator : public SfxStyleSheetIterator, public SfxListener
 
 public:
     SwStyleSheetIterator( SwDocStyleSheetPool* pBase,
-                          SfxStyleFamily eFam, sal_uInt16 n=SFXSTYLEBIT_ALL );
+                          SfxStyleFamily eFam, sal_uInt16 n );
     virtual ~SwStyleSheetIterator() override;
 
     virtual sal_uInt16 Count() override;
@@ -201,7 +201,7 @@ class SwDocStyleSheetPool : public SfxStyleSheetBasePool
     using SfxStyleSheetBasePool::Find;
 
 public:
-    SwDocStyleSheetPool( SwDoc&, bool bOrganizer = false );
+    SwDocStyleSheetPool( SwDoc&, bool bOrganizer );
 
     virtual SfxStyleSheetBase& Make(const OUString&, SfxStyleFamily,
             sal_uInt16 nMask = SFXSTYLEBIT_ALL) override;
diff --git a/sw/inc/docufld.hxx b/sw/inc/docufld.hxx
index 4464dc6..2736161 100644
--- a/sw/inc/docufld.hxx
+++ b/sw/inc/docufld.hxx
@@ -151,7 +151,7 @@ class SW_DLLPUBLIC SwPageNumberField : public SwField
     sal_uInt16 m_nMaxPage;
 
 public:
-    SwPageNumberField(SwPageNumberFieldType*, sal_uInt16 nSub = PG_RANDOM,
+    SwPageNumberField(SwPageNumberFieldType*, sal_uInt16 nSub,
                       sal_uInt32 nFormat = 0, short nOff = 0,
                       sal_uInt16 const nPageNumber = 0,
                       sal_uInt16 const nMaxPage = 0);
@@ -187,7 +187,7 @@ class SwAuthorField : public SwField
     OUString aContent;
 
 public:
-    SwAuthorField(SwAuthorFieldType*, sal_uInt32 nFormat = 0);
+    SwAuthorField(SwAuthorFieldType*, sal_uInt32 nFormat);
 
     virtual OUString    Expand() const override;
     virtual SwField*    Copy() const override;
@@ -214,7 +214,7 @@ class SW_DLLPUBLIC SwFileNameField : public SwField
     OUString aContent;
 
 public:
-    SwFileNameField(SwFileNameFieldType*, sal_uInt32 nFormat = 0);
+    SwFileNameField(SwFileNameFieldType*, sal_uInt32 nFormat);
 
     virtual OUString    Expand() const override;
     virtual SwField*    Copy() const override;
@@ -239,7 +239,7 @@ public:
 class SW_DLLPUBLIC SwTemplNameField : public SwField
 {
 public:
-    SwTemplNameField(SwTemplNameFieldType*, sal_uInt32 nFormat = 0);
+    SwTemplNameField(SwTemplNameFieldType*, sal_uInt32 nFormat);
 
     virtual OUString    Expand() const override;
     virtual SwField*    Copy() const override;
@@ -267,7 +267,7 @@ class SW_DLLPUBLIC SwDocStatField : public SwField
 
 public:
     SwDocStatField( SwDocStatFieldType*,
-                    sal_uInt16 nSubType = 0, sal_uInt32 nFormat = 0);
+                    sal_uInt16 nSubType, sal_uInt32 nFormat = 0);
 
     void ChangeExpansion( const SwFrame* pFrame );
 
@@ -535,7 +535,7 @@ class SwExtUserField : public SwField
     sal_uInt16  nType;
 
 public:
-    SwExtUserField(SwExtUserFieldType*, sal_uInt16 nSub, sal_uInt32 nFormat=0);
+    SwExtUserField(SwExtUserFieldType*, sal_uInt16 nSub, sal_uInt32 nFormat);
 
     virtual OUString    Expand() const override;
     virtual SwField*    Copy() const override;
@@ -569,7 +569,7 @@ class SwRefPageSetField : public SwField
     bool    bOn;
 
 public:
-    SwRefPageSetField( SwRefPageSetFieldType*, short nOff = 0,
+    SwRefPageSetField( SwRefPageSetFieldType*, short nOff,
                         bool bOn = true );
 
     virtual OUString    Expand() const override;
@@ -676,7 +676,7 @@ class SwScriptField : public SwField
 
 public:
     SwScriptField( SwScriptFieldType*, const OUString& rType,
-                   const OUString& rCode, bool bURL=false );
+                   const OUString& rCode, bool bURL );
 
     virtual OUString        GetDescription() const override;
 
diff --git a/sw/inc/dpage.hxx b/sw/inc/dpage.hxx
index 3bd14a2..75d63b0 100644
--- a/sw/inc/dpage.hxx
+++ b/sw/inc/dpage.hxx
@@ -34,7 +34,7 @@ class SwDPage : public FmFormPage, public SdrObjUserCall
     SwDoc*                  pDoc;
 
 public:
-    explicit SwDPage(SwDrawModel& rNewModel, bool bMasterPage=false);
+    explicit SwDPage(SwDrawModel& rNewModel, bool bMasterPage);
     virtual ~SwDPage() override;
 
     virtual SwDPage* Clone() const override;
diff --git a/sw/inc/editsh.hxx b/sw/inc/editsh.hxx
index 20a24a9..2bc0d30 100644
--- a/sw/inc/editsh.hxx
+++ b/sw/inc/editsh.hxx
@@ -531,7 +531,7 @@ public:
     void ChgNumRuleFormats( const SwNumRule& rRule );
 
     /// Set (and query if) a numbering with StartFlag starts at current PointPos.
-    void SetNumRuleStart( bool bFlag, SwPaM* pCursor = nullptr );
+    void SetNumRuleStart( bool bFlag, SwPaM* pCursor );
     bool IsNumRuleStart( SwPaM* pPaM = nullptr ) const;
     void SetNodeNumStart( sal_uInt16 nStt );
 
@@ -550,7 +550,7 @@ public:
      Reset UndoHistory at Save, SaveAs, Create ??? */
     void DoUndo( bool bOn = true );
     bool DoesUndo() const;
-    void DoGroupUndo( bool bUn = true );
+    void DoGroupUndo( bool bUn );
     bool DoesGroupUndo() const;
     void DelAllUndoObj();
 
@@ -660,13 +660,13 @@ public:
      including styles. */
     sal_uInt16 MakeGlossary( SwTextBlocks& rToFill, const OUString& rName,
                          const OUString& rShortName, bool bSaveRelFile,
-                         const OUString* pOnlyText=nullptr );
+                         const OUString* pOnlyText );
 
     /// Save complete content of doc as glossary.
     sal_uInt16 SaveGlossaryDoc( SwTextBlocks& rGlossary, const OUString& rName,
                             const OUString& rShortName,
                             bool bSaveRelFile,
-                            bool bOnlyText = false );
+                            bool bOnlyText );
 
     // Linguistics...
     /// Save selections.
@@ -937,7 +937,7 @@ public:
     sal_uInt16 GetScalingOfSelectedText() const;
 
     /// Ctor/Dtor.
-    SwEditShell( SwDoc&, vcl::Window*, const SwViewOption *pOpt = nullptr );
+    SwEditShell( SwDoc&, vcl::Window*, const SwViewOption *pOpt );
 
     /// Copy-Constructor in disguise.
     SwEditShell( SwEditShell&, vcl::Window* );
diff --git a/sw/inc/expfld.hxx b/sw/inc/expfld.hxx
index 9e62ee9..618af04 100644
--- a/sw/inc/expfld.hxx
+++ b/sw/inc/expfld.hxx
@@ -95,7 +95,7 @@ class SW_DLLPUBLIC SwGetExpField : public SwFormulaField
 
 public:
     SwGetExpField( SwGetExpFieldType*, const OUString& rFormel,
-                   sal_uInt16 nSubType = nsSwGetSetExpType::GSE_EXPR, sal_uLong nFormat = 0);
+                   sal_uInt16 nSubType, sal_uLong nFormat = 0);
 
     virtual void                SetValue( const double& rVal ) override;
     virtual void                SetLanguage(sal_uInt16 nLng) override;
@@ -316,7 +316,7 @@ public:
         SwInputFieldType* pFieldType,
         const OUString& rContent,
         const OUString& rPrompt,
-        sal_uInt16 nSubType = 0,
+        sal_uInt16 nSubType,
         sal_uLong nFormat = 0,
         bool bIsFormField = true );
     virtual ~SwInputField() override;
@@ -400,7 +400,7 @@ class SwTableField : public SwValueField, public SwTableFormula
 
 public:
     SwTableField( SwTableFieldType*, const OUString& rFormel,
-                sal_uInt16 nSubType = 0, sal_uLong nFormat = 0);
+                sal_uInt16 nSubType, sal_uLong nFormat = 0);
 
     virtual void        SetValue( const double& rVal ) override;
     virtual sal_uInt16  GetSubType() const override;
diff --git a/sw/inc/extinput.hxx b/sw/inc/extinput.hxx
index f6bb44b..de253f8 100644
--- a/sw/inc/extinput.hxx
+++ b/sw/inc/extinput.hxx
@@ -33,7 +33,7 @@ class SwExtTextInput : public SwPaM
     bool bIsOverwriteCursor : 1;
     LanguageType eInputLanguage;
 public:
-    SwExtTextInput( const SwPaM& rPam, Ring* pRing = nullptr );
+    SwExtTextInput( const SwPaM& rPam, Ring* pRing );
     virtual ~SwExtTextInput() override;
 
     void SetInputData( const CommandExtTextInputData& rData );
diff --git a/sw/inc/fesh.hxx b/sw/inc/fesh.hxx
index 4ee0a6a..a4e2b65 100644
--- a/sw/inc/fesh.hxx
+++ b/sw/inc/fesh.hxx
@@ -250,7 +250,7 @@ public:
 
     using SwEditShell::Insert;
 
-    SwFEShell( SwDoc& rDoc, vcl::Window *pWin, const SwViewOption *pOpt = nullptr );
+    SwFEShell( SwDoc& rDoc, vcl::Window *pWin, const SwViewOption *pOpt );
     SwFEShell( SwEditShell& rShell, vcl::Window *pWin );
     virtual ~SwFEShell() override;
 
@@ -419,7 +419,7 @@ public:
     const SwFrameFormat* GetFlyNum(size_t nIdx, FlyCntType eType, bool bIgnoreTextBoxes = false) const;
 
     std::vector<SwFrameFormat const*> GetFlyFrameFormats(
-            FlyCntType eType, bool bIgnoreTextBoxes = false);
+            FlyCntType eType, bool bIgnoreTextBoxes);
 
     /// If a fly is selected, it draws cursor into the first ContentFrame.
     const SwFrameFormat* SelFlyGrabCursor();
@@ -471,7 +471,7 @@ public:
 
     /// Jump to named Fly (graphic/OLE).
     bool GotoFly( const OUString& rName, FlyCntType eType,
-                  bool bSelFrame = true );
+                  bool bSelFrame );
 
     /// Position is a graphic with URL?
     const SwFrameFormat* IsURLGrfAtPos( const Point& rPt, OUString* pURL = nullptr,
@@ -570,7 +570,7 @@ public:
     void Insert(const OUString& rGrfName,
                 const OUString& rFltName,
                 const Graphic* pGraphic,
-                const SfxItemSet* pFlyAttrSet = nullptr );
+                const SfxItemSet* pFlyAttrSet );
 
     /// Insertion of a drawing object which have to be already inserted in the DrawModel.
     void InsertDrawObj( SdrObject& rDrawObj,
@@ -645,7 +645,7 @@ public:
                                       @return error via enum. */
 
     /// Split cell vertically or horizontally.
-    bool SplitTab( bool bVert, sal_uInt16 nCnt = 1, bool bSameHeight = false );
+    bool SplitTab( bool bVert, sal_uInt16 nCnt, bool bSameHeight = false );
     bool Sort(const SwSortOptions&);    //Sortieren.
 
     void SetRowHeight( const SwFormatFrameSize &rSz );
@@ -686,7 +686,7 @@ public:
                           const Point &rPt );
 
     /// pEnd will be used during MouseMove
-    bool SelTableRowCol( const Point& rPt, const Point* pEnd, bool bRowDrag = false );
+    bool SelTableRowCol( const Point& rPt, const Point* pEnd, bool bRowDrag );
 
     void GetTabRows( SwTabCols &rToFill ) const;
     void SetTabRows( const SwTabCols &rNew, bool bCurColOnly );
@@ -698,7 +698,7 @@ public:
     void UnProtectCells();  ///< Refers to table selection.
     void UnProtectTables();   ///< Unprotect all tables in selection.
     bool HasTableAnyProtection( const OUString* pTableName,
-                              bool* pFullTableProtection = nullptr );
+                              bool* pFullTableProtection );
     bool CanUnProtectCells() const;
 
     sal_uInt16 GetRowsToRepeat() const;
diff --git a/sw/inc/fldbas.hxx b/sw/inc/fldbas.hxx
index 0c350e8..094c5fad 100644
--- a/sw/inc/fldbas.hxx
+++ b/sw/inc/fldbas.hxx
@@ -401,7 +401,7 @@ private:
     double m_fValue;
 
 protected:
-    SwValueField( SwValueFieldType* pFieldType, sal_uInt32 nFormat = 0, sal_uInt16 nLang = LANGUAGE_SYSTEM, const double fVal = 0.0 );
+    SwValueField( SwValueFieldType* pFieldType, sal_uInt32 nFormat, sal_uInt16 nLang = LANGUAGE_SYSTEM, const double fVal = 0.0 );
     SwValueField( const SwValueField& rField );
 
 public:
@@ -427,7 +427,7 @@ private:
     OUString m_sFormula;
 
 protected:
-    SwFormulaField( SwValueFieldType* pFieldType, sal_uInt32 nFormat = 0, const double fVal = 0.0 );
+    SwFormulaField( SwValueFieldType* pFieldType, sal_uInt32 nFormat, const double fVal = 0.0 );
     SwFormulaField( const SwFormulaField& rField );
 
 public:
diff --git a/sw/inc/fmtcol.hxx b/sw/inc/fmtcol.hxx
index 1a52693..5c2045b 100644
--- a/sw/inc/fmtcol.hxx
+++ b/sw/inc/fmtcol.hxx
@@ -77,7 +77,7 @@ protected:
     }
 
     SwTextFormatColl( SwAttrPool& rPool, const OUString &rFormatCollName,
-                    SwTextFormatColl* pDerFrom = nullptr,
+                    SwTextFormatColl* pDerFrom,
                     sal_uInt16 nFormatWh = RES_TXTFMTCOLL )
         : SwFormatColl(rPool, rFormatCollName, aTextFormatCollSetRange, pDerFrom, nFormatWh)
         , mbStayAssignedToListLevelOfOutlineStyle(false)
@@ -145,7 +145,7 @@ protected:
     {}
 
     SwGrfFormatColl( SwAttrPool& rPool, const OUString &rFormatCollName,
-                    SwGrfFormatColl* pDerFrom = nullptr )
+                    SwGrfFormatColl* pDerFrom )
         : SwFormatColl( rPool, rFormatCollName, aGrfFormatCollSetRange,
                     pDerFrom, RES_GRFFMTCOLL )
     {}
@@ -183,7 +183,7 @@ class SW_DLLPUBLIC SwCollCondition : public SwClient
 public:
 
     SwCollCondition( SwTextFormatColl* pColl, sal_uLong nMasterCond,
-                    sal_uLong nSubCond = 0 );
+                    sal_uLong nSubCond );
     SwCollCondition( SwTextFormatColl* pColl, sal_uLong nMasterCond,
                     const OUString& rSubExp );
     virtual ~SwCollCondition() override;
@@ -217,7 +217,7 @@ protected:
     SwFormatCollConditions m_CondColls;
 
     SwConditionTextFormatColl( SwAttrPool& rPool, const OUString &rFormatCollName,
-                            SwTextFormatColl* pDerFrom = nullptr )
+                            SwTextFormatColl* pDerFrom )
         : SwTextFormatColl( rPool, rFormatCollName, pDerFrom, RES_CONDTXTFMTCOLL )
     {}
 
diff --git a/sw/inc/globdoc.hxx b/sw/inc/globdoc.hxx
index fa74c33..e63f08f 100644
--- a/sw/inc/globdoc.hxx
+++ b/sw/inc/globdoc.hxx
@@ -27,7 +27,7 @@ public:
 
     SFX_DECL_OBJECTFACTORY();
 
-    SwGlobalDocShell(SfxObjectCreateMode eMode = SfxObjectCreateMode::EMBEDDED);
+    SwGlobalDocShell(SfxObjectCreateMode eMode);
     virtual ~SwGlobalDocShell() override;
 
     virtual void    FillClass( SvGlobalName * pClassName,
diff --git a/sw/inc/gotodlg.hxx b/sw/inc/gotodlg.hxx
index 6d1d833..734e9cd 100644
--- a/sw/inc/gotodlg.hxx
+++ b/sw/inc/gotodlg.hxx
@@ -28,7 +28,7 @@ class SwWrtShell;
 class SwGotoPageDlg : public ModalDialog
 {
 public:
-    SwGotoPageDlg(vcl::Window *parent = nullptr, SfxBindings* _pBindings = nullptr);
+    SwGotoPageDlg(vcl::Window *parent, SfxBindings* _pBindings = nullptr);
 
     virtual ~SwGotoPageDlg() override;
     virtual void dispose() override;
diff --git a/sw/inc/iodetect.hxx b/sw/inc/iodetect.hxx
index 91ee8ae..cce9b32 100644
--- a/sw/inc/iodetect.hxx
+++ b/sw/inc/iodetect.hxx
@@ -96,7 +96,7 @@ public:
     static bool IsValidStgFilter( const css::uno::Reference < css::embed::XStorage >& rStg, const SfxFilter& rFilter);
 
     static bool IsDetectableText( const sal_Char* pBuf, sal_uLong &rLen,
-            rtl_TextEncoding *pCharSet, bool *pSwap=nullptr, LineEnd *pLineEnd=nullptr, bool bEncodedFilter = false );
+            rtl_TextEncoding *pCharSet, bool *pSwap, LineEnd *pLineEnd=nullptr, bool bEncodedFilter = false );
 
     static const OUString GetSubStorageName( const SfxFilter& rFltr );
 };
diff --git a/sw/inc/ndarr.hxx b/sw/inc/ndarr.hxx
index f5861b0..620ffe1 100644
--- a/sw/inc/ndarr.hxx
+++ b/sw/inc/ndarr.hxx
@@ -248,7 +248,7 @@ public:
     static SwTableNode* InsertTable( const SwNodeIndex& rNdIdx,
                         sal_uInt16 nBoxes, SwTextFormatColl* pContentTextColl,
                         sal_uInt16 nLines, sal_uInt16 nRepeat,
-                        SwTextFormatColl* pHeadlineTextColl = nullptr,
+                        SwTextFormatColl* pHeadlineTextColl,
                         const SwAttrSet * pAttrSet = nullptr);
 
     /// Create balanced table from selected range.
diff --git a/sw/inc/ndgrf.hxx b/sw/inc/ndgrf.hxx
index d43b283..162ac0c 100644
--- a/sw/inc/ndgrf.hxx
+++ b/sw/inc/ndgrf.hxx
@@ -56,16 +56,16 @@ class SW_DLLPUBLIC SwGrfNode: public SwNoTextNode
                const OUString& rGrfName, const OUString& rFltName,
                const Graphic* pGraphic,
                SwGrfFormatColl* pGrfColl,
-               SwAttrSet* pAutoAttr = nullptr );
+               SwAttrSet* pAutoAttr );
     ///< Ctor for reading (SW/G) without graphics.
     SwGrfNode( const SwNodeIndex& rWhere,
                const OUString& rGrfName, const OUString& rFltName,
                SwGrfFormatColl* pGrfColl,
-               SwAttrSet* pAutoAttr = nullptr );
+               SwAttrSet* pAutoAttr );
     SwGrfNode( const SwNodeIndex& rWhere,
                const GraphicObject& rGrfObj,
                SwGrfFormatColl* pGrfColl,
-               SwAttrSet* pAutoAttr = nullptr );
+               SwAttrSet* pAutoAttr );
 
     void InsertLink( const OUString& rGrfName, const OUString& rFltName );
     bool ImportGraphic( SvStream& rStrm );
@@ -126,9 +126,9 @@ 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, OutputDevice* pFirstFrameOutDev = nullptr)
+    void StartGraphicAnimation(OutputDevice* pOut, const Point& rPt, const Size& rSz, long nExtraData, OutputDevice* pFirstFrameOutDev)
     { maGrfObj.StartAnimation(pOut, rPt, rSz, nExtraData, pFirstFrameOutDev); }
-    void StopGraphicAnimation(OutputDevice* pOut, long nExtraData = 0) { maGrfObj.StopAnimation(pOut, nExtraData); }
+    void StopGraphicAnimation(OutputDevice* pOut, long nExtraData) { maGrfObj.StopAnimation(pOut, nExtraData); }
 
     virtual Size GetTwipSize() const override;
     void SetTwipSize( const Size& rSz );
diff --git a/sw/inc/ndindex.hxx b/sw/inc/ndindex.hxx
index f2e2d41..435a313 100644
--- a/sw/inc/ndindex.hxx
+++ b/sw/inc/ndindex.hxx
@@ -140,7 +140,7 @@ public:
     SwNodeRange( const SwNodeRange &rRange )
         : aStart( rRange.aStart ), aEnd( rRange.aEnd ) {};
 
-    SwNodeRange( SwNodes& rNds, sal_uLong nSttIdx = 0, sal_uLong nEndIdx = 0 )
+    SwNodeRange( SwNodes& rNds, sal_uLong nSttIdx, sal_uLong nEndIdx = 0 )
         : aStart( rNds, nSttIdx ), aEnd( rNds, nEndIdx ) {};
 
     SwNodeRange( const SwNodeIndex& rS, long nSttDiff, const SwNodeIndex& rE, long nEndDiff = 0 )
diff --git a/sw/inc/ndnotxt.hxx b/sw/inc/ndnotxt.hxx
index cb8c490..69347e9c7 100644
--- a/sw/inc/ndnotxt.hxx
+++ b/sw/inc/ndnotxt.hxx
@@ -46,7 +46,7 @@ class SW_DLLPUBLIC SwNoTextNode : public SwContentNode
 
 protected:
     SwNoTextNode( const SwNodeIndex &rWhere, const sal_uInt8 nNdType,
-                SwGrfFormatColl *pGrColl, SwAttrSet* pAutoAttr = nullptr );
+                SwGrfFormatColl *pGrColl, SwAttrSet* pAutoAttr );
 
 public:
     virtual ~SwNoTextNode() override;
diff --git a/sw/inc/ndole.hxx b/sw/inc/ndole.hxx
index a20a4cc..28d427d 100644
--- a/sw/inc/ndole.hxx
+++ b/sw/inc/ndole.hxx
@@ -93,13 +93,13 @@ class SW_DLLPUBLIC SwOLENode: public SwNoTextNode
     SwOLENode(  const SwNodeIndex &rWhere,
                 const svt::EmbeddedObjectRef&,
                 SwGrfFormatColl *pGrfColl,
-                SwAttrSet* pAutoAttr = nullptr );
+                SwAttrSet* pAutoAttr );
 
     SwOLENode(  const SwNodeIndex &rWhere,
                 const OUString &rName,
                 sal_Int64 nAspect,
                 SwGrfFormatColl *pGrfColl,
-                SwAttrSet* pAutoAttr = nullptr );
+                SwAttrSet* pAutoAttr );
 
     SwOLENode( const SwOLENode & ) = delete;
 
diff --git a/sw/inc/ndtxt.hxx b/sw/inc/ndtxt.hxx
index a1807a1..0d481b1 100644
--- a/sw/inc/ndtxt.hxx
+++ b/sw/inc/ndtxt.hxx
@@ -329,7 +329,7 @@ public:
     void CopyText( SwTextNode * const pDest,
                const SwIndex &rStart,
                const sal_Int32 nLen,
-               const bool bForceCopyOfAllAttrs = false );
+               const bool bForceCopyOfAllAttrs );
     void CopyText( SwTextNode * const pDest,
                const SwIndex &rDestStart,
                const SwIndex &rStart,
@@ -689,7 +689,7 @@ public:
                             const bool bWithSpacesForLevel = false,
                             const bool bWithFootnote = true ) const;
     bool GetExpandText( SwTextNode& rDestNd, const SwIndex* pDestIdx,
-                           sal_Int32 nIdx, sal_Int32 nLen = -1,
+                           sal_Int32 nIdx, sal_Int32 nLen,
                            bool bWithNum = false, bool bWithFootnote = true,
                            bool bReplaceTabsWithSpaces = false ) const;
 
diff --git a/sw/inc/shellio.hxx b/sw/inc/shellio.hxx
index df75e6f..cf70536 100644
--- a/sw/inc/shellio.hxx
+++ b/sw/inc/shellio.hxx
@@ -505,7 +505,7 @@ public:
 
     SwWriter( const css::uno::Reference < css::embed::XStorage >&, SwDoc& );
 
-    SwWriter( SfxMedium&, SwCursorShell &, bool bWriteAll = false );
+    SwWriter( SfxMedium&, SwCursorShell &, bool bWriteAll );
     SwWriter( SfxMedium&, SwDoc & );
 };
 
diff --git a/sw/inc/swtable.hxx b/sw/inc/swtable.hxx
index 596bd6b..5d31a43 100644
--- a/sw/inc/swtable.hxx
+++ b/sw/inc/swtable.hxx
@@ -399,9 +399,9 @@ class SW_DLLPUBLIC SwTableBox: public SwClient      //Client of FrameFormat.
 
 public:
 
-    SwTableBox( SwTableBoxFormat*, sal_uInt16 nLines, SwTableLine *pUp = nullptr );
-    SwTableBox( SwTableBoxFormat*, const SwStartNode&, SwTableLine *pUp = nullptr );
-    SwTableBox( SwTableBoxFormat*, const SwNodeIndex&, SwTableLine *pUp = nullptr );
+    SwTableBox( SwTableBoxFormat*, sal_uInt16 nLines, SwTableLine *pUp );
+    SwTableBox( SwTableBoxFormat*, const SwStartNode&, SwTableLine *pUp );
+    SwTableBox( SwTableBoxFormat*, const SwNodeIndex&, SwTableLine *pUp );
     virtual ~SwTableBox() override;
 
           SwTableLines &GetTabLines() { return m_aLines; }
diff --git a/sw/inc/tblsel.hxx b/sw/inc/tblsel.hxx
index 88cede1..c1f938d 100644
--- a/sw/inc/tblsel.hxx
+++ b/sw/inc/tblsel.hxx
@@ -200,7 +200,7 @@ class FndLine_
     FndLine_& operator=(FndLine_ const&) = delete;
 
 public:
-    FndLine_(SwTableLine* pL, FndBox_* pFB=nullptr) : pLine(pL), pUpper(pFB) {}
+    FndLine_(SwTableLine* pL, FndBox_* pFB) : pLine(pL), pUpper(pFB) {}
     const FndBoxes_t&   GetBoxes() const    { return m_Boxes; }
         FndBoxes_t&     GetBoxes()          { return m_Boxes; }
     const SwTableLine*  GetLine() const     { return pLine; }
diff --git a/sw/inc/txatritr.hxx b/sw/inc/txatritr.hxx
index 665df19..dfb4474 100644
--- a/sw/inc/txatritr.hxx
+++ b/sw/inc/txatritr.hxx
@@ -38,7 +38,7 @@ class SwScriptIterator
     bool bForward;
 
 public:
-    SwScriptIterator( const OUString& rStr, sal_Int32 nStart = 0,
+    SwScriptIterator( const OUString& rStr, sal_Int32 nStart,
                       bool bFrwrd = true );
 
     bool Next();
@@ -63,7 +63,7 @@ class SwTextAttrIterator
 
 public:
     SwTextAttrIterator( const SwTextNode& rTextNd, sal_uInt16 nWhichId,
-                        sal_Int32 nStart = 0 );
+                        sal_Int32 nStart );
 
     bool Next();
 
@@ -74,7 +74,7 @@ public:
 class SwLanguageIterator : public SwTextAttrIterator
 {
 public:
-    SwLanguageIterator( const SwTextNode& rTextNode, sal_Int32 nStart = 0 )
+    SwLanguageIterator( const SwTextNode& rTextNode, sal_Int32 nStart )
         : SwTextAttrIterator( rTextNode, RES_CHRATR_LANGUAGE, nStart )
     {}
 
diff --git a/sw/inc/txttxmrk.hxx b/sw/inc/txttxmrk.hxx
index 4a5f29e..77c0434 100644
--- a/sw/inc/txttxmrk.hxx
+++ b/sw/inc/txttxmrk.hxx
@@ -32,7 +32,7 @@ class SwTextTOXMark : public SwTextAttrEnd
 
 public:
     SwTextTOXMark( SwTOXMark& rAttr,
-            sal_Int32 const nStart, sal_Int32 const*const pEnd = nullptr);
+            sal_Int32 const nStart, sal_Int32 const*const pEnd);
     virtual ~SwTextTOXMark() override;
 
     virtual sal_Int32 *GetEnd() override;     // SwTextAttr
diff --git a/sw/inc/unoparagraph.hxx b/sw/inc/unoparagraph.hxx
index c15d3db..a9a5455 100644
--- a/sw/inc/unoparagraph.hxx
+++ b/sw/inc/unoparagraph.hxx
@@ -74,7 +74,7 @@ private:
 
     SwXParagraph(css::uno::Reference< css::text::XText > const & xParent,
             SwTextNode & rTextNode,
-            const sal_Int32 nSelStart = -1, const sal_Int32 nSelEnd = - 1);
+            const sal_Int32 nSelStart, const sal_Int32 nSelEnd = - 1);
 
     /// descriptor
     SwXParagraph();
diff --git a/sw/inc/unotbl.hxx b/sw/inc/unotbl.hxx
index 498fe5e..329e758 100644
--- a/sw/inc/unotbl.hxx
+++ b/sw/inc/unotbl.hxx
@@ -91,7 +91,7 @@ protected:
     virtual void SwClientNotify(const SwModify&, const SfxHint&) override;
 
 public:
-    SwXCell(SwFrameFormat* pTableFormat, SwTableBox* pBox, size_t nPos = NOTFOUND);
+    SwXCell(SwFrameFormat* pTableFormat, SwTableBox* pBox, size_t nPos);
     SwXCell(SwFrameFormat* pTableFormat, const SwStartNode& rStartNode); // XML import interface
 
 
diff --git a/sw/inc/usrfld.hxx b/sw/inc/usrfld.hxx
index 8f57b78..325c0ae 100644
--- a/sw/inc/usrfld.hxx
+++ b/sw/inc/usrfld.hxx
@@ -95,7 +95,7 @@ class SW_DLLPUBLIC SwUserField : public SwValueField
     virtual SwField*        Copy() const override;
 
 public:
-    SwUserField(SwUserFieldType*, sal_uInt16 nSub = 0, sal_uInt32 nFormat = 0);
+    SwUserField(SwUserFieldType*, sal_uInt16 nSub, sal_uInt32 nFormat = 0);
 
     virtual sal_uInt16      GetSubType() const override;
     virtual void            SetSubType(sal_uInt16 nSub) override;
diff --git a/sw/inc/viewsh.hxx b/sw/inc/viewsh.hxx
index a32babe..1d5a34b 100644
--- a/sw/inc/viewsh.hxx
+++ b/sw/inc/viewsh.hxx
@@ -206,7 +206,7 @@ public:
     inline void StartAction();
            void ImplStartAction();
     inline void EndAction( const bool bIdleEnd = false );
-           void ImplEndAction( const bool bIdleEnd = false );
+           void ImplEndAction( const bool bIdleEnd );
     sal_uInt16 ActionCount() const { return mnStartAction; }
     bool ActionPend() const { return mnStartAction != 0; }
     bool IsInEndAction() const { return mbInEndAction; }
@@ -543,10 +543,10 @@ public:
 
     SwAccessibleMap* GetAccessibleMap();
 
-    SwViewShell( SwViewShell&, vcl::Window *pWin = nullptr, OutputDevice *pOut = nullptr,
+    SwViewShell( SwViewShell&, vcl::Window *pWin, OutputDevice *pOut = nullptr,
                 long nFlags = 0 );
     SwViewShell( SwDoc& rDoc, vcl::Window *pWin,
-               const SwViewOption *pOpt = nullptr, OutputDevice *pOut = nullptr,
+               const SwViewOption *pOpt, OutputDevice *pOut = nullptr,
                long nFlags = 0 );
     virtual ~SwViewShell() override;
 
diff --git a/sw/inc/viscrs.hxx b/sw/inc/viscrs.hxx
index e7714f02..c5ba194 100644
--- a/sw/inc/viscrs.hxx
+++ b/sw/inc/viscrs.hxx
@@ -128,7 +128,7 @@ private:
 public:
     SwShellCursor( const SwCursorShell& rCursorSh, const SwPosition &rPos );
     SwShellCursor( const SwCursorShell& rCursorSh, const SwPosition &rPos,
-                    const Point& rPtPos, SwPaM* pRing = nullptr );
+                    const Point& rPtPos, SwPaM* pRing );
     // note: *intentionally* links the new shell cursor into the old one's Ring
     SwShellCursor( SwShellCursor& );
     virtual ~SwShellCursor() override;
diff --git a/sw/source/core/access/accportions.hxx b/sw/source/core/access/accportions.hxx
index 946a10c..70ffd53 100644
--- a/sw/source/core/access/accportions.hxx
+++ b/sw/source/core/access/accportions.hxx
@@ -93,7 +93,7 @@ class SwAccessiblePortionData : public SwPortionHandler
 
 public:
     SwAccessiblePortionData( const SwTextNode* pTextNd,
-                             const SwViewOption* pViewOpt = nullptr );
+                             const SwViewOption* pViewOpt );
     virtual ~SwAccessiblePortionData() override;
 
     // SwPortionHandler methods
diff --git a/sw/source/core/doc/doccomp.cxx b/sw/source/core/doc/doccomp.cxx
index ebe4e58..5357682 100644
--- a/sw/source/core/doc/doccomp.cxx
+++ b/sw/source/core/doc/doccomp.cxx
@@ -339,7 +339,7 @@ protected:
         delete[] pData;
     }
 
-    int FindLCS( int *pLcs1, int *pLcs2, int nStt1 = 0,
+    int FindLCS( int *pLcs1, int *pLcs2, int nStt1,
                     int nEnd1 = 0, int nStt2 = 0, int nEnd2 = 0 );
 
 public:
diff --git a/sw/source/core/doc/tblrwcl.cxx b/sw/source/core/doc/tblrwcl.cxx
index 8dd4f4b..6652bca 100644
--- a/sw/source/core/doc/tblrwcl.cxx
+++ b/sw/source/core/doc/tblrwcl.cxx
@@ -1371,7 +1371,7 @@ struct InsULPara
 
     InsULPara( SwTableNode* pTNd,
                 SwTableBox* pLeft,
-                SwTableLine* pLine=nullptr )
+                SwTableLine* pLine )
         : pTableNd( pTNd ), pInsLine( pLine ), pInsBox( nullptr ),
         pLeftBox( pLeft )
         {   bUL_LR = true; bUL = true; }
diff --git a/sw/source/core/inc/UndoManager.hxx b/sw/source/core/inc/UndoManager.hxx
index 62649df..247e245 100644
--- a/sw/source/core/inc/UndoManager.hxx
+++ b/sw/source/core/inc/UndoManager.hxx
@@ -68,7 +68,7 @@ public:
                                  const SwView* pView = nullptr) const override;
     virtual SwUndoComments_t GetUndoComments() const override;
     virtual bool GetFirstRedoInfo(OUString *const o_pStr,
-                                  SwUndoId *const o_pId = nullptr,
+                                  SwUndoId *const o_pId,
                                   const SwView* pView = nullptr) const override;
     virtual SwUndoComments_t GetRedoComments() const override;
     virtual bool Repeat(::sw::RepeatContext & rContext,
diff --git a/sw/source/core/inc/UndoNumbering.hxx b/sw/source/core/inc/UndoNumbering.hxx
index 4997526..f3ce48b 100644
--- a/sw/source/core/inc/UndoNumbering.hxx
+++ b/sw/source/core/inc/UndoNumbering.hxx
@@ -86,7 +86,7 @@ class SwUndoMoveNum : public SwUndo, private SwUndRng
     long nOffset;
 
 public:
-    SwUndoMoveNum( const SwPaM& rPam, long nOffset, bool bIsOutlMv = false );
+    SwUndoMoveNum( const SwPaM& rPam, long nOffset, bool bIsOutlMv );
 
     virtual void UndoImpl( ::sw::UndoRedoContext & ) override;
     virtual void RedoImpl( ::sw::UndoRedoContext & ) override;
diff --git a/sw/source/core/inc/UndoRedline.hxx b/sw/source/core/inc/UndoRedline.hxx
index bc7b72f..e417853 100644
--- a/sw/source/core/inc/UndoRedline.hxx
+++ b/sw/source/core/inc/UndoRedline.hxx
@@ -59,7 +59,7 @@ class SwUndoRedlineDelete : public SwUndoRedline
     virtual void RedoRedlineImpl(SwDoc & rDoc, SwPaM & rPam) override;
 
 public:
-    SwUndoRedlineDelete( const SwPaM& rRange, SwUndoId nUserId = UNDO_EMPTY );
+    SwUndoRedlineDelete( const SwPaM& rRange, SwUndoId nUserId );
 
     bool CanGrouping( const SwUndoRedlineDelete& rPrev );
 
diff --git a/sw/source/core/inc/cellfrm.hxx b/sw/source/core/inc/cellfrm.hxx
index 763e90a..b70c54b 100644
--- a/sw/source/core/inc/cellfrm.hxx
+++ b/sw/source/core/inc/cellfrm.hxx
@@ -40,7 +40,7 @@ protected:
     virtual void Modify( const SfxPoolItem*, const SfxPoolItem* ) override;
 
 public:
-    SwCellFrame( const SwTableBox &, SwFrame*, bool bInsertContent = true );
+    SwCellFrame( const SwTableBox &, SwFrame*, bool bInsertContent );
 
     virtual bool GetCursorOfst( SwPosition *, Point&, SwCursorMoveState* = nullptr, bool bTestBackground = false ) const override;
     virtual void Paint( vcl::RenderContext& rRenderContext, SwRect const&,
diff --git a/sw/source/core/inc/docfld.hxx b/sw/source/core/inc/docfld.hxx
index 231a63a..6cf9ba5 100644
--- a/sw/source/core/inc/docfld.hxx
+++ b/sw/source/core/inc/docfld.hxx
@@ -74,7 +74,7 @@ public:
 
     SetGetExpField( const SwPosition& rPos );
 
-    SetGetExpField( const SwFlyFrameFormat& rFlyFormat, const SwPosition* pPos = nullptr );
+    SetGetExpField( const SwFlyFrameFormat& rFlyFormat, const SwPosition* pPos );
 
     bool operator==( const SetGetExpField& rField ) const;
     bool operator<( const SetGetExpField& rField ) const;
@@ -110,7 +110,7 @@ public:
 struct HashStr : public SwHash
 {
     OUString aSetStr;
-    HashStr( const OUString& rName, const OUString& rText, HashStr* = nullptr );
+    HashStr( const OUString& rName, const OUString& rText, HashStr* );
 };
 
 struct SwCalcFieldType : public SwHash
diff --git a/sw/source/core/inc/dview.hxx b/sw/source/core/inc/dview.hxx
index 1b66f6f..34a1de4 100644
--- a/sw/source/core/inc/dview.hxx
+++ b/sw/source/core/inc/dview.hxx
@@ -79,7 +79,7 @@ protected:
     virtual SdrUndoManager* getSdrUndoManagerForEnhancedTextEdit() const override;
 
 public:
-    SwDrawView( SwViewShellImp &rI, SdrModel *pMd, OutputDevice* pOutDev=nullptr );
+    SwDrawView( SwViewShellImp &rI, SdrModel *pMd, OutputDevice* pOutDev );
 
     // from base class
     virtual SdrObject*   GetMaxToTopObj(SdrObject* pObj) const override;
diff --git a/sw/source/core/inc/frame.hxx b/sw/source/core/inc/frame.hxx
index 95ec45a..a3451ee 100644
--- a/sw/source/core/inc/frame.hxx
+++ b/sw/source/core/inc/frame.hxx
@@ -646,7 +646,7 @@ public:
     void ImplInvalidateLineNum();
 
     inline void InvalidateNextPos( bool bNoFootnote = false );
-    void ImplInvalidateNextPos( bool bNoFootnote = false );
+    void ImplInvalidateNextPos( bool bNoFootnote );
 
     /** method to invalidate printing area of next frame
         #i11859#
diff --git a/sw/source/core/inc/mvsave.hxx b/sw/source/core/inc/mvsave.hxx
index 14f3662..df770da6 100644
--- a/sw/source/core/inc/mvsave.hxx
+++ b/sw/source/core/inc/mvsave.hxx
@@ -49,7 +49,7 @@ namespace sw { namespace mark
             SaveBookmark(
                 const ::sw::mark::IMark& rBkmk,
                 const SwNodeIndex& rMvPos,
-                const SwIndex* pIdx =nullptr);
+                const SwIndex* pIdx);
             void SetInDoc(SwDoc* pDoc,
                 const SwNodeIndex&,
                 const SwIndex* pIdx =nullptr);
diff --git a/sw/source/core/inc/objectformatter.hxx b/sw/source/core/inc/objectformatter.hxx
index 1de7de0..e010ee2 100644
--- a/sw/source/core/inc/objectformatter.hxx
+++ b/sw/source/core/inc/objectformatter.hxx
@@ -73,7 +73,7 @@ class SwObjectFormatter
 
     protected:
         SwObjectFormatter( const SwPageFrame& _rPageFrame,
-                           SwLayAction* _pLayAction = nullptr,
+                           SwLayAction* _pLayAction,
                            const bool _bCollectPgNumOfAnchors = false );
 
         static SwObjectFormatter* CreateObjFormatter( SwFrame& _rAnchorFrame,
diff --git a/sw/source/core/inc/swcache.hxx b/sw/source/core/inc/swcache.hxx
index 7784e01..d8dfe25 100644
--- a/sw/source/core/inc/swcache.hxx
+++ b/sw/source/core/inc/swcache.hxx
@@ -199,7 +199,7 @@ protected:
 
     inline SwCacheObj *Get();
 
-    inline SwCacheAccess( SwCache &rCache, const void *pOwner, bool bSeek = true );
+    inline SwCacheAccess( SwCache &rCache, const void *pOwner, bool bSeek );
     inline SwCacheAccess( SwCache &rCache, const void *pOwner, const sal_uInt16 nIndex );
 
 public:
diff --git a/sw/source/core/inc/tblrwcl.hxx b/sw/source/core/inc/tblrwcl.hxx
index 8646600..c78c2fa 100644
--- a/sw/source/core/inc/tblrwcl.hxx
+++ b/sw/source/core/inc/tblrwcl.hxx
@@ -51,7 +51,7 @@ void InsTableBox( SwDoc* pDoc, SwTableNode* pTableNd,
                 SwTableBox* pBox, sal_uInt16 nInsPos, sal_uInt16 nCnt = 1 );
 
 SW_DLLPUBLIC void DeleteBox_( SwTable& rTable, SwTableBox* pBox, SwUndo* pUndo,
-                bool bCalcNewSize, const bool bCorrBorder = true,
+                bool bCalcNewSize, const bool bCorrBorder,
                 SwShareBoxFormats* pShareFormats = nullptr );
 
 /**
diff --git a/sw/source/core/inc/txtfrm.hxx b/sw/source/core/inc/txtfrm.hxx
index 43f6210..811800e 100644
--- a/sw/source/core/inc/txtfrm.hxx
+++ b/sw/source/core/inc/txtfrm.hxx
@@ -294,9 +294,9 @@ public:
                             bool bSetInReadOnly ) const override;
     virtual bool UnitDown(SwPaM *, const SwTwips nOffset,
                             bool bSetInReadOnly ) const override;
-    bool UnitUp_(SwPaM *, const SwTwips nOffset = 0,
+    bool UnitUp_(SwPaM *, const SwTwips nOffset,
                             bool bSetInReadOnly = false ) const;
-    bool UnitDown_(SwPaM *, const SwTwips nOffset = 0,
+    bool UnitDown_(SwPaM *, const SwTwips nOffset,
                             bool bSetInReadOnly = false ) const;
 
     /**
diff --git a/sw/source/core/inc/unobookmark.hxx b/sw/source/core/inc/unobookmark.hxx
index 6bf1e4f..0cfa4ed 100644
--- a/sw/source/core/inc/unobookmark.hxx
+++ b/sw/source/core/inc/unobookmark.hxx
@@ -220,7 +220,7 @@ private:
 protected:
 
     SwXFieldmark(bool isReplacementObject,
-            ::sw::mark::IMark* pBkm = nullptr, SwDoc* pDoc = nullptr);
+            ::sw::mark::IMark* pBkm, SwDoc* pDoc = nullptr);
 
 public:
 
diff --git a/sw/source/core/inc/unofield.hxx b/sw/source/core/inc/unofield.hxx
index 5762e93..360a98c 100644
--- a/sw/source/core/inc/unofield.hxx
+++ b/sw/source/core/inc/unofield.hxx
@@ -161,7 +161,7 @@ private:
     SwXTextField(SwFormatField& rFormat, SwDoc & rDoc);
 
     /// descriptor
-    SwXTextField(SwServiceType nServiceId, SwDoc* pDoc=nullptr);
+    SwXTextField(SwServiceType nServiceId, SwDoc* pDoc);
 
 public:
     SwServiceType GetServiceId() const;
diff --git a/sw/source/core/inc/unosection.hxx b/sw/source/core/inc/unosection.hxx
index 2e09264..175a9ef 100644
--- a/sw/source/core/inc/unosection.hxx
+++ b/sw/source/core/inc/unosection.hxx
@@ -57,7 +57,7 @@ private:
     class Impl;
     ::sw::UnoImplPtr<Impl> m_pImpl;
 
-    SwXTextSection(SwSectionFormat *const pFormat, const bool bIndexHeader = false);
+    SwXTextSection(SwSectionFormat *const pFormat, const bool bIndexHeader);
 
     virtual ~SwXTextSection() override;
 
diff --git a/sw/source/core/inc/viewimp.hxx b/sw/source/core/inc/viewimp.hxx
index be88ca9..465a68f 100644
--- a/sw/source/core/inc/viewimp.hxx
+++ b/sw/source/core/inc/viewimp.hxx
@@ -170,7 +170,7 @@ public:
     void   PaintLayer( const SdrLayerID _nLayerID,
                        SwPrintData const*const pPrintData,
                        const SwRect& _rRect,
-                       const Color* _pPageBackgrdColor = nullptr,
+                       const Color* _pPageBackgrdColor,
                        const bool _bIsPageRightToLeft = false,
                        sdr::contact::ViewObjectContactRedirector* pRedirector = nullptr );
 
@@ -247,7 +247,7 @@ public:
     void InvalidateAccessibleCursorPosition( const SwFrame *pFrame );
 
     /// Invalidate editable state for all accessible frames
-    void InvalidateAccessibleEditableState( bool bAllShells = true,
+    void InvalidateAccessibleEditableState( bool bAllShells,
                                                const SwFrame *pFrame=nullptr );
 
     /// Invalidate frame's relation set (for chained frames)
diff --git a/sw/source/core/text/pormulti.hxx b/sw/source/core/text/pormulti.hxx
index 24a9206..2124297 100644
--- a/sw/source/core/text/pormulti.hxx
+++ b/sw/source/core/text/pormulti.hxx
@@ -200,7 +200,7 @@ public:
 class SwRotatedPortion : public SwMultiPortion
 {
 public:
-    SwRotatedPortion( sal_Int32 nEnd, sal_uInt8 nDir = 1 )
+    SwRotatedPortion( sal_Int32 nEnd, sal_uInt8 nDir )
         : SwMultiPortion( nEnd ) { SetDirection( nDir ); }
     SwRotatedPortion( const SwMultiCreator& rCreate, sal_Int32 nEnd,
                       bool bRTL );


More information about the Libreoffice-commits mailing list