[Libreoffice-commits] core.git: sw/source tools/inc ucb/source unoxml/source uui/source vcl/inc vcl/source

Noel Grandin noel.grandin at collabora.co.uk
Mon Oct 3 11:13:33 UTC 2016


 sw/source/core/text/portab.hxx                     |   12 ++++----
 sw/source/core/unocore/unoobj2.cxx                 |    4 +-
 sw/source/core/unocore/unostyle.cxx                |    2 -
 sw/source/filter/html/htmltab.cxx                  |    2 -
 sw/source/filter/html/htmltabw.cxx                 |    2 -
 sw/source/filter/html/svxcss1.hxx                  |    2 -
 sw/source/filter/html/swhtml.hxx                   |    2 -
 sw/source/filter/ww8/ww8glsy.hxx                   |    2 -
 sw/source/filter/ww8/ww8scan.hxx                   |    4 +-
 sw/source/filter/ww8/ww8toolbar.hxx                |   12 ++++----
 sw/source/filter/xml/xmltbli.hxx                   |    2 -
 sw/source/ui/dbui/mmaddressblockpage.hxx           |    2 -
 sw/source/uibase/inc/DropDownFieldDialog.hxx       |    2 -
 sw/source/uibase/inc/chrdlg.hxx                    |    2 -
 sw/source/uibase/inc/frmdlg.hxx                    |    2 -
 sw/source/uibase/inc/glshell.hxx                   |    2 -
 sw/source/uibase/inc/inpdlg.hxx                    |    2 -
 sw/source/uibase/inc/insfnote.hxx                  |    2 -
 sw/source/uibase/inc/mailmergehelper.hxx           |    2 -
 sw/source/uibase/inc/mailmrge.hxx                  |    2 -
 sw/source/uibase/inc/numberingtypelistbox.hxx      |    2 -
 sw/source/uibase/inc/scroll.hxx                    |    2 -
 sw/source/uibase/inc/swuicnttab.hxx                |    2 -
 sw/source/uibase/inc/swuiidxmrk.hxx                |   29 ++++++++++-----------
 sw/source/uibase/inc/swuipardlg.hxx                |    2 -
 sw/source/uibase/inc/tautofmt.hxx                  |    4 +-
 sw/source/uibase/inc/tmpdlg.hxx                    |    8 ++---
 sw/source/uibase/inc/uiitems.hxx                   |    4 +-
 sw/source/uibase/inc/unotools.hxx                  |    4 +-
 sw/source/uibase/inc/wrtsh.hxx                     |   28 ++++++++++----------
 sw/source/uibase/sidebar/ThemePanel.cxx            |    2 -
 tools/inc/poly.h                                   |    2 -
 ucb/source/ucp/ftp/ftpurl.hxx                      |    7 +----
 ucb/source/ucp/hierarchy/hierarchydatasupplier.hxx |    2 -
 unoxml/source/dom/elementlist.hxx                  |    2 -
 uui/source/passworddlg.hxx                         |    2 -
 vcl/inc/brdwin.hxx                                 |    4 +-
 vcl/source/filter/jpeg/jpeg.hxx                    |    2 -
 38 files changed, 84 insertions(+), 88 deletions(-)

New commits:
commit 8f62ca8e2f33a63b62dd7c39b8e002b03d6c4d95
Author: Noel Grandin <noel.grandin at collabora.co.uk>
Date:   Mon Oct 3 09:00:41 2016 +0200

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

diff --git a/sw/source/core/text/portab.hxx b/sw/source/core/text/portab.hxx
index 5261a96..de1af65 100644
--- a/sw/source/core/text/portab.hxx
+++ b/sw/source/core/text/portab.hxx
@@ -30,7 +30,7 @@ class SwTabPortion : public SwFixPortion
     // Format() branches either into PreFormat() or PostFormat()
     bool PreFormat( SwTextFormatInfo &rInf );
 public:
-    SwTabPortion( const sal_uInt16 nTabPos, const sal_Unicode cFill = '\0', const bool bAutoTab = true );
+    SwTabPortion( const sal_uInt16 nTabPos, const sal_Unicode cFill, const bool bAutoTab = true );
     virtual void Paint( const SwTextPaintInfo &rInf ) const override;
     virtual bool Format( SwTextFormatInfo &rInf ) override;
     virtual void FormatEOL( SwTextFormatInfo &rInf ) override;
@@ -48,7 +48,7 @@ public:
 class SwTabLeftPortion : public SwTabPortion
 {
 public:
-    inline SwTabLeftPortion( const sal_uInt16 nTabPosVal, const sal_Unicode cFillChar='\0', bool bAutoTab = true )
+    inline SwTabLeftPortion( const sal_uInt16 nTabPosVal, const sal_Unicode cFillChar, bool bAutoTab = true )
          : SwTabPortion( nTabPosVal, cFillChar, bAutoTab )
     { SetWhichPor( POR_TABLEFT ); }
     OUTPUT_OPERATOR_OVERRIDE
@@ -57,7 +57,7 @@ public:
 class SwTabRightPortion : public SwTabPortion
 {
 public:
-    inline SwTabRightPortion( const sal_uInt16 nTabPosVal, const sal_Unicode cFillChar='\0' )
+    inline SwTabRightPortion( const sal_uInt16 nTabPosVal, const sal_Unicode cFillChar )
          : SwTabPortion( nTabPosVal, cFillChar )
     { SetWhichPor( POR_TABRIGHT ); }
     OUTPUT_OPERATOR_OVERRIDE
@@ -66,7 +66,7 @@ public:
 class SwTabCenterPortion : public SwTabPortion
 {
 public:
-    inline SwTabCenterPortion( const sal_uInt16 nTabPosVal, const sal_Unicode cFillChar='\0' )
+    inline SwTabCenterPortion( const sal_uInt16 nTabPosVal, const sal_Unicode cFillChar )
          : SwTabPortion( nTabPosVal, cFillChar )
     { SetWhichPor( POR_TABCENTER ); }
     OUTPUT_OPERATOR_OVERRIDE
@@ -85,7 +85,7 @@ class SwTabDecimalPortion : public SwTabPortion
 
 public:
     inline SwTabDecimalPortion( const sal_uInt16 nTabPosVal, const sal_Unicode cTab,
-                                const sal_Unicode cFillChar = '\0' )
+                                const sal_Unicode cFillChar )
          : SwTabPortion( nTabPosVal, cFillChar ),
            mcTab(cTab),
            mnWidthOfPortionsUpTpDecimalPosition( USHRT_MAX )
@@ -109,7 +109,7 @@ class SwAutoTabDecimalPortion : public SwTabDecimalPortion
 {
 public:
     inline SwAutoTabDecimalPortion( const sal_uInt16 nTabPosVal, const sal_Unicode cTab,
-                                    const sal_Unicode cFillChar = '\0' )
+                                    const sal_Unicode cFillChar )
          : SwTabDecimalPortion( nTabPosVal, cTab, cFillChar )
     { SetLen( 0 ); }
     virtual void Paint( const SwTextPaintInfo &rInf ) const override;
diff --git a/sw/source/core/unocore/unoobj2.cxx b/sw/source/core/unocore/unoobj2.cxx
index 97ea2e7..da92fca 100644
--- a/sw/source/core/unocore/unoobj2.cxx
+++ b/sw/source/core/unocore/unoobj2.cxx
@@ -689,7 +689,7 @@ public:
     ::sw::mark::IMark * m_pMark;
 
     Impl(   SwDoc & rDoc, const enum RangePosition eRange,
-            SwFrameFormat *const pTableFormat = nullptr,
+            SwFrameFormat *const pTableFormat,
             const uno::Reference< text::XText > & xParent = nullptr)
         : SwClient()
         , m_rPropSet(*aSwMapProvider.GetPropertySet(PROPERTY_MAP_TEXT_CURSOR))
@@ -1606,7 +1606,7 @@ struct SwXParaFrameEnumerationImpl final : public SwXParaFrameEnumeration
     virtual sal_Bool SAL_CALL hasMoreElements() throw (css::uno::RuntimeException, std::exception) override;
     virtual css::uno::Any SAL_CALL nextElement() throw (css::container::NoSuchElementException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override;
 
-    SwXParaFrameEnumerationImpl(const SwPaM& rPaM, const enum ParaFrameMode eParaFrameMode, SwFrameFormat* const pFormat = nullptr);
+    SwXParaFrameEnumerationImpl(const SwPaM& rPaM, const enum ParaFrameMode eParaFrameMode, SwFrameFormat* const pFormat);
     virtual void SAL_CALL release() throw () override
     {
         SolarMutexGuard g;
diff --git a/sw/source/core/unocore/unostyle.cxx b/sw/source/core/unocore/unostyle.cxx
index 44fcda9..1a83620 100644
--- a/sw/source/core/unocore/unostyle.cxx
+++ b/sw/source/core/unocore/unostyle.cxx
@@ -303,7 +303,7 @@ protected:
 
    virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew) override;
 public:
-    SwXStyle(SwDoc* pDoc, SfxStyleFamily eFam = SfxStyleFamily::Para, bool bConditional = false);
+    SwXStyle(SwDoc* pDoc, SfxStyleFamily eFam, bool bConditional = false);
     SwXStyle(SfxStyleSheetBasePool* pPool, SfxStyleFamily eFamily, SwDoc* pDoc, const OUString& rStyleName);
     virtual ~SwXStyle() override;
 
diff --git a/sw/source/filter/html/htmltab.cxx b/sw/source/filter/html/htmltab.cxx
index f86f862..9ffcb7a 100644
--- a/sw/source/filter/html/htmltab.cxx
+++ b/sw/source/filter/html/htmltab.cxx
@@ -288,7 +288,7 @@ public:
 
     bool bBottomBorder;                 // Is there a line after the row?
 
-    explicit HTMLTableRow( sal_uInt16 nCells=0 );    // cells of the row are empty
+    explicit HTMLTableRow( sal_uInt16 nCells );    // cells of the row are empty
 
     ~HTMLTableRow();
 
diff --git a/sw/source/filter/html/htmltabw.cxx b/sw/source/filter/html/htmltabw.cxx
index fb3fa03..3f98d41 100644
--- a/sw/source/filter/html/htmltabw.cxx
+++ b/sw/source/filter/html/htmltabw.cxx
@@ -84,7 +84,7 @@ class SwHTMLWrtTable : public SwWriteTable
 
 public:
     SwHTMLWrtTable( const SwTableLines& rLines, long nWidth, sal_uInt32 nBWidth,
-                    bool bRel, sal_uInt16 nLeftSub=0, sal_uInt16 nRightSub=0,
+                    bool bRel, sal_uInt16 nLeftSub, sal_uInt16 nRightSub=0,
                     sal_uInt16 nNumOfRowsToRepeat = 0 );
     explicit SwHTMLWrtTable( const SwHTMLTableLayout *pLayoutInfo );
 
diff --git a/sw/source/filter/html/svxcss1.hxx b/sw/source/filter/html/svxcss1.hxx
index 28327f6..34b6bd7 100644
--- a/sw/source/filter/html/svxcss1.hxx
+++ b/sw/source/filter/html/svxcss1.hxx
@@ -240,7 +240,7 @@ public:
 
     SvxCSS1Parser( SfxItemPool& rPool,
                     const OUString& rBaseURL,
-                   sal_uInt16 *pWhichIds=nullptr, sal_uInt16 nWhichIds=0 );
+                   sal_uInt16 *pWhichIds, sal_uInt16 nWhichIds=0 );
     virtual ~SvxCSS1Parser() override;
 
     bool IsIgnoreFontFamily() const { return bIgnoreFontFamily; }
diff --git a/sw/source/filter/html/swhtml.hxx b/sw/source/filter/html/swhtml.hxx
index e861d2f..6ec45ba 100644
--- a/sw/source/filter/html/swhtml.hxx
+++ b/sw/source/filter/html/swhtml.hxx
@@ -886,7 +886,7 @@ public:
     SwHTMLParser( SwDoc* pD, SwPaM & rCursor, SvStream& rIn,
                     const OUString& rFileName,
                     const OUString& rBaseURL,
-                    bool bReadNewDoc = true,
+                    bool bReadNewDoc,
                     SfxMedium* pMed = nullptr, bool bReadUTF8 = false,
                     bool bIgnoreHTMLComments = false );
 
diff --git a/sw/source/filter/ww8/ww8glsy.hxx b/sw/source/filter/ww8/ww8glsy.hxx
index c0d03b2..abd9518 100644
--- a/sw/source/filter/ww8/ww8glsy.hxx
+++ b/sw/source/filter/ww8/ww8glsy.hxx
@@ -57,7 +57,7 @@ private:
 class WW8Glossary
 {
 public:
-    WW8Glossary( tools::SvRef<SotStorageStream> &refStrm, sal_uInt8 nVersion, SotStorage *pStg=nullptr);
+    WW8Glossary( tools::SvRef<SotStorageStream> &refStrm, sal_uInt8 nVersion, SotStorage *pStg);
     bool Load( SwTextBlocks &rBlocks, bool bSaveRelFile );
     ~WW8Glossary()                  { delete pGlossary; }
     WW8GlossaryFib *GetFib()        { return pGlossary; }
diff --git a/sw/source/filter/ww8/ww8scan.hxx b/sw/source/filter/ww8/ww8scan.hxx
index 221eedb..9e8a155 100644
--- a/sw/source/filter/ww8/ww8scan.hxx
+++ b/sw/source/filter/ww8/ww8scan.hxx
@@ -524,7 +524,7 @@ public:
     public:
         WW8Fkp (ww::WordVersion eVersion, SvStream* pFKPStrm,
             SvStream* pDataStrm, long _nFilePos, long nItemSiz, ePLCFT ePl,
-            WW8_FC nStartFc = -1);
+            WW8_FC nStartFc);
         void Reset(WW8_FC nPos);
         long GetFilePos() const { return nFilePos; }
         sal_uInt8 GetIdx() const { return mnIdx; }
@@ -681,7 +681,7 @@ private:
 
 public:
     WW8PLCFx_SubDoc(SvStream* pSt, ww::WordVersion eVersion, WW8_CP nStartCp,
-    long nFcRef, long nLenRef, long nFcText, long nLenText, long nStruc = 0);
+                    long nFcRef, long nLenRef, long nFcText, long nLenText, long nStruc);
     virtual ~WW8PLCFx_SubDoc() override;
     virtual sal_uInt32 GetIdx() const override;
     virtual void SetIdx( sal_uLong nIdx ) override;
diff --git a/sw/source/filter/ww8/ww8toolbar.hxx b/sw/source/filter/ww8/ww8toolbar.hxx
index 8701025..5dd3181 100644
--- a/sw/source/filter/ww8/ww8toolbar.hxx
+++ b/sw/source/filter/ww8/ww8toolbar.hxx
@@ -163,7 +163,7 @@ class SwCTBWrapper : public Tcg255SubStruct
     SwCTBWrapper& operator = ( const SwCTBWrapper&) = delete;
 
 public:
-    explicit SwCTBWrapper( bool bReadId = true );
+    explicit SwCTBWrapper( bool bReadId );
     virtual ~SwCTBWrapper() override;
     void InsertDropIndex( sal_Int32 aIndex ) { dropDownMenuIndices.push_back( aIndex ); }
     SwTBC* GetTBCAtOffset( sal_uInt32 nStreamOffset );
@@ -207,7 +207,7 @@ class PlfMcd : public Tcg255SubStruct
     PlfMcd& operator = ( const PlfMcd&) = delete;
 
 public:
-    explicit PlfMcd( bool bReadId = true );
+    explicit PlfMcd( bool bReadId );
     bool Read(SvStream &rS) override;
 #if OSL_DEBUG_LEVEL > 1
     virtual void Print( FILE* ) override;
@@ -238,7 +238,7 @@ class PlfAcd: public Tcg255SubStruct
     PlfAcd& operator = ( const PlfAcd&) = delete;
 
 public:
-    explicit PlfAcd( bool bReadId = true );
+    explicit PlfAcd( bool bReadId );
     virtual ~PlfAcd() override;
     bool Read(SvStream &rS) override;
 #if OSL_DEBUG_LEVEL > 1
@@ -275,7 +275,7 @@ class PlfKme : public Tcg255SubStruct
     PlfKme& operator = ( const PlfKme&) = delete;
 
 public:
-    explicit PlfKme( bool bReadId = true );
+    explicit PlfKme( bool bReadId );
     virtual ~PlfKme() override;
     bool Read(SvStream &rS) override;
 #if OSL_DEBUG_LEVEL > 1
@@ -316,7 +316,7 @@ class TcgSttbf : public Tcg255SubStruct
     TcgSttbf& operator = ( const TcgSttbf&) = delete;
 
 public:
-    explicit TcgSttbf( bool bReadId = true );
+    explicit TcgSttbf( bool bReadId );
     virtual ~TcgSttbf() override {}
     bool Read(SvStream &rS) override;
 #if OSL_DEBUG_LEVEL > 1
@@ -366,7 +366,7 @@ class MacroNames : public Tcg255SubStruct
     MacroNames& operator = ( const MacroNames&) = delete;
 
 public:
-    explicit MacroNames( bool bReadId = true );
+    explicit MacroNames( bool bReadId );
     virtual ~MacroNames() override;
     bool Read(SvStream &rS) override;
 #if OSL_DEBUG_LEVEL > 1
diff --git a/sw/source/filter/xml/xmltbli.hxx b/sw/source/filter/xml/xmltbli.hxx
index da26c30..091de46 100644
--- a/sw/source/filter/xml/xmltbli.hxx
+++ b/sw/source/filter/xml/xmltbli.hxx
@@ -159,7 +159,7 @@ public:
 
     void InsertCell( const OUString& rStyleName,
                      sal_uInt32 nRowSpan, sal_uInt32 nColSpan,
-                     const SwStartNode *pStNd=nullptr,
+                     const SwStartNode *pStNd,
                      const OUString & i_rXmlId = OUString(),
                      SwXMLTableContext *pTable=nullptr,
                      bool bIsProtected = false,
diff --git a/sw/source/ui/dbui/mmaddressblockpage.hxx b/sw/source/ui/dbui/mmaddressblockpage.hxx
index aa2bb64..4c1632b 100644
--- a/sw/source/ui/dbui/mmaddressblockpage.hxx
+++ b/sw/source/ui/dbui/mmaddressblockpage.hxx
@@ -158,7 +158,7 @@ class AddressMultiLineEdit : public VclMultiLineEdit, public SfxListener
 protected:
     bool            PreNotify( NotifyEvent& rNEvt ) override;
 public:
-    AddressMultiLineEdit(vcl::Window* pParent, WinBits nWinStyle = WB_LEFT | WB_BORDER);
+    AddressMultiLineEdit(vcl::Window* pParent, WinBits nWinStyle);
     virtual ~AddressMultiLineEdit() override;
     virtual void    dispose() override;
 
diff --git a/sw/source/uibase/inc/DropDownFieldDialog.hxx b/sw/source/uibase/inc/DropDownFieldDialog.hxx
index 2c378dd..7b18b6b 100644
--- a/sw/source/uibase/inc/DropDownFieldDialog.hxx
+++ b/sw/source/uibase/inc/DropDownFieldDialog.hxx
@@ -48,7 +48,7 @@ class DropDownFieldDialog : public SvxStandardDialog
     DECL_LINK_TYPED(DoubleClickHdl, ListBox&, void);
 public:
     DropDownFieldDialog(   vcl::Window *pParent, SwWrtShell &rSh,
-                                SwField* pField, bool bNextButton = false );
+                                SwField* pField, bool bNextButton );
     virtual ~DropDownFieldDialog() override;
     virtual void dispose() override;
 };
diff --git a/sw/source/uibase/inc/chrdlg.hxx b/sw/source/uibase/inc/chrdlg.hxx
index a52e1a5..9753409 100644
--- a/sw/source/uibase/inc/chrdlg.hxx
+++ b/sw/source/uibase/inc/chrdlg.hxx
@@ -46,7 +46,7 @@ class SwCharDlg: public SfxTabDialog
 
 public:
     SwCharDlg(vcl::Window* pParent, SwView& pVw, const SfxItemSet& rCoreSet,
-              SwCharDlgMode nDialogMode, const OUString* pFormatStr = nullptr);
+              SwCharDlgMode nDialogMode, const OUString* pFormatStr);
 
     virtual ~SwCharDlg() override;
 
diff --git a/sw/source/uibase/inc/frmdlg.hxx b/sw/source/uibase/inc/frmdlg.hxx
index a0f226c..b31931d 100644
--- a/sw/source/uibase/inc/frmdlg.hxx
+++ b/sw/source/uibase/inc/frmdlg.hxx
@@ -52,7 +52,7 @@ class SwFrameDlg : public SfxTabDialog
 public:
     SwFrameDlg(   SfxViewFrame *pFrame, vcl::Window *pParent,
                 const SfxItemSet& rCoreSet,
-                bool bNewFrame  = false,
+                bool bNewFrame,
                 const OUString& sResType = OUString("FrameDialog"),
                 bool bFormat     = false,
                 const OString& sDefPage = OString(),
diff --git a/sw/source/uibase/inc/glshell.hxx b/sw/source/uibase/inc/glshell.hxx
index f682b48..1b98556 100644
--- a/sw/source/uibase/inc/glshell.hxx
+++ b/sw/source/uibase/inc/glshell.hxx
@@ -37,7 +37,7 @@ private:
     static void InitInterface_Impl();
 
 public:
-    SwGlosDocShell( bool bNewShow = true);
+    SwGlosDocShell( bool bNewShow);
     virtual ~SwGlosDocShell() override;
 
     void            Execute( SfxRequest& );
diff --git a/sw/source/uibase/inc/inpdlg.hxx b/sw/source/uibase/inc/inpdlg.hxx
index 11672e5..1c75245 100644
--- a/sw/source/uibase/inc/inpdlg.hxx
+++ b/sw/source/uibase/inc/inpdlg.hxx
@@ -52,7 +52,7 @@ class SwFieldInputDlg: public SvxStandardDialog
     DECL_LINK_TYPED(NextHdl, Button*, void);
 public:
     SwFieldInputDlg(  vcl::Window *pParent, SwWrtShell &rSh,
-                    SwField* pField, bool bNextButton = false );
+                    SwField* pField, bool bNextButton );
     virtual ~SwFieldInputDlg() override;
     virtual void dispose() override;
 };
diff --git a/sw/source/uibase/inc/insfnote.hxx b/sw/source/uibase/inc/insfnote.hxx
index 4065f45..f8c2446 100644
--- a/sw/source/uibase/inc/insfnote.hxx
+++ b/sw/source/uibase/inc/insfnote.hxx
@@ -65,7 +65,7 @@ class SwInsFootNoteDlg: public SvxStandardDialog
     void            Init();
 
 public:
-    SwInsFootNoteDlg(vcl::Window * pParent, SwWrtShell &rSh, bool bEd = false);
+    SwInsFootNoteDlg(vcl::Window * pParent, SwWrtShell &rSh, bool bEd);
     virtual ~SwInsFootNoteDlg() override;
     virtual void dispose() override;
 
diff --git a/sw/source/uibase/inc/mailmergehelper.hxx b/sw/source/uibase/inc/mailmergehelper.hxx
index fdf3275..cb9b4a20 100644
--- a/sw/source/uibase/inc/mailmergehelper.hxx
+++ b/sw/source/uibase/inc/mailmergehelper.hxx
@@ -76,7 +76,7 @@ class SW_DLLPUBLIC SwAddressPreview : public vcl::Window
     DECL_LINK_TYPED(ScrollHdl, ScrollBar*,void);
 
 public:
-    SwAddressPreview(vcl::Window* pParent, WinBits nStyle=WB_BORDER);
+    SwAddressPreview(vcl::Window* pParent, WinBits nStyle);
     virtual ~SwAddressPreview() override;
     virtual void dispose() override;
 
diff --git a/sw/source/uibase/inc/mailmrge.hxx b/sw/source/uibase/inc/mailmrge.hxx
index b5a3550..a0d801f 100644
--- a/sw/source/uibase/inc/mailmrge.hxx
+++ b/sw/source/uibase/inc/mailmrge.hxx
@@ -123,7 +123,7 @@ public:
         const OUString& rTableName,
         sal_Int32 nCommandType,
         const css::uno::Reference< css::sdbc::XConnection>& xConnection,
-        css::uno::Sequence< css::uno::Any >* pSelection = nullptr);
+        css::uno::Sequence< css::uno::Any >* pSelection);
     virtual ~SwMailMergeDlg() override;
     virtual void dispose() override;
 
diff --git a/sw/source/uibase/inc/numberingtypelistbox.hxx b/sw/source/uibase/inc/numberingtypelistbox.hxx
index c07af46..71d1173 100644
--- a/sw/source/uibase/inc/numberingtypelistbox.hxx
+++ b/sw/source/uibase/inc/numberingtypelistbox.hxx
@@ -43,7 +43,7 @@ class SW_DLLPUBLIC SwNumberingTypeListBox : public ListBox
     SwNumberingTypeListBox_Impl* pImpl;
 
 public:
-    SwNumberingTypeListBox( vcl::Window* pWin, WinBits nStyle = WB_BORDER );
+    SwNumberingTypeListBox( vcl::Window* pWin, WinBits nStyle );
     virtual ~SwNumberingTypeListBox() override;
     virtual void dispose() override;
 
diff --git a/sw/source/uibase/inc/scroll.hxx b/sw/source/uibase/inc/scroll.hxx
index d9a825a..a2dc6e3 100644
--- a/sw/source/uibase/inc/scroll.hxx
+++ b/sw/source/uibase/inc/scroll.hxx
@@ -48,7 +48,7 @@ public:
     void    SetAuto(bool bSet);
     bool    IsAuto() { return bAuto;}
 
-    SwScrollbar(vcl::Window *pParent, bool bHori = true );
+    SwScrollbar(vcl::Window *pParent, bool bHori );
     virtual ~SwScrollbar() override;
 };
 
diff --git a/sw/source/uibase/inc/swuicnttab.hxx b/sw/source/uibase/inc/swuicnttab.hxx
index 266f3d9..f6e6d1d 100644
--- a/sw/source/uibase/inc/swuicnttab.hxx
+++ b/sw/source/uibase/inc/swuicnttab.hxx
@@ -99,7 +99,7 @@ class SwMultiTOXTabDialog : public SfxTabDialog
 public:
     SwMultiTOXTabDialog(vcl::Window* pParent, const SfxItemSet& rSet,
                         SwWrtShell &rShell,
-                        SwTOXBase* pCurTOX, sal_uInt16 nToxType = USHRT_MAX,
+                        SwTOXBase* pCurTOX, sal_uInt16 nToxType,
                         bool bGlobal = false);
     virtual ~SwMultiTOXTabDialog() override;
     virtual void        dispose() override;
diff --git a/sw/source/uibase/inc/swuiidxmrk.hxx b/sw/source/uibase/inc/swuiidxmrk.hxx
index 862c845..a6c084f 100644
--- a/sw/source/uibase/inc/swuiidxmrk.hxx
+++ b/sw/source/uibase/inc/swuiidxmrk.hxx
@@ -156,12 +156,12 @@ class SwIndexMarkFloatDlg : public SfxModelessDialog
 {
     SwIndexMarkPane m_aContent;
     virtual void    Activate() override;
-    public:
-        SwIndexMarkFloatDlg(       SfxBindings* pBindings,
-                                   SfxChildWindow* pChild,
-                                   vcl::Window *pParent,
-                                   SfxChildWinInfo* pInfo,
-                                   bool bNew=true);
+public:
+    SwIndexMarkFloatDlg( SfxBindings* pBindings,
+                         SfxChildWindow* pChild,
+                         vcl::Window *pParent,
+                         SfxChildWinInfo* pInfo,
+                         bool bNew);
     void    ReInitDlg(SwWrtShell& rWrtShell);
 };
 
@@ -220,10 +220,9 @@ class SwAuthorMarkPane
 
     void InitControls();
     void Activate();
-public:
 
-    SwAuthorMarkPane( Dialog &rDialog,
-                       bool bNew=true);
+public:
+    SwAuthorMarkPane( Dialog &rDialog, bool bNew);
 
     void    ReInitDlg(SwWrtShell& rWrtShell);
 };
@@ -232,12 +231,12 @@ class SwAuthMarkFloatDlg : public SfxModelessDialog
 {
     SwAuthorMarkPane m_aContent;
     virtual void    Activate() override;
-    public:
-        SwAuthMarkFloatDlg(        SfxBindings* pBindings,
-                                   SfxChildWindow* pChild,
-                                   vcl::Window *pParent,
-                                   SfxChildWinInfo* pInfo,
-                                   bool bNew=true);
+public:
+    SwAuthMarkFloatDlg( SfxBindings* pBindings,
+                        SfxChildWindow* pChild,
+                        vcl::Window *pParent,
+                        SfxChildWinInfo* pInfo,
+                        bool bNew);
     void    ReInitDlg(SwWrtShell& rWrtShell);
 };
 
diff --git a/sw/source/uibase/inc/swuipardlg.hxx b/sw/source/uibase/inc/swuipardlg.hxx
index c1ebe82..8802890 100644
--- a/sw/source/uibase/inc/swuipardlg.hxx
+++ b/sw/source/uibase/inc/swuipardlg.hxx
@@ -44,7 +44,7 @@ public:
                 SwView& rVw,
                 const SfxItemSet&,
                 sal_uInt8 nDialogMode,
-                const OUString *pCollName = nullptr,
+                const OUString *pCollName,
                 bool bDraw = false,
                 const OString& sDefPage = OString());
     virtual ~SwParaDlg() override;
diff --git a/sw/source/uibase/inc/tautofmt.hxx b/sw/source/uibase/inc/tautofmt.hxx
index 901b9dd..bf790bf 100644
--- a/sw/source/uibase/inc/tautofmt.hxx
+++ b/sw/source/uibase/inc/tautofmt.hxx
@@ -79,8 +79,8 @@ class SwAutoFormatDlg : public SfxModalDialog
 
 public:
     SwAutoFormatDlg( vcl::Window* pParent, SwWrtShell* pShell,
-                        bool bSetAutoFormat = true,
-                        const SwTableAutoFormat* pSelFormat = nullptr );
+                        bool bSetAutoFormat,
+                        const SwTableAutoFormat* pSelFormat );
     virtual ~SwAutoFormatDlg() override;
     virtual void dispose() override;
 
diff --git a/sw/source/uibase/inc/tmpdlg.hxx b/sw/source/uibase/inc/tmpdlg.hxx
index 72bbda2..c4a14d6 100644
--- a/sw/source/uibase/inc/tmpdlg.hxx
+++ b/sw/source/uibase/inc/tmpdlg.hxx
@@ -69,12 +69,12 @@ class SwTemplateDlg: public SfxStyleDialog
 public:
     /// @param sPage
     /// Identifies name of page to open at by default
-    SwTemplateDlg(  vcl::Window*             pParent,
+    SwTemplateDlg(  vcl::Window*        pParent,
                     SfxStyleSheetBase&  rBase,
                     SfxStyleFamily      nRegion,
-                    const OString&      sPage = OString(),
-                    SwWrtShell*         pActShell = nullptr,
-                    bool                bNew = false );
+                    const OString&      sPage,
+                    SwWrtShell*         pActShell,
+                    bool                bNew );
 
     virtual void RefreshInputSet() override;
 
diff --git a/sw/source/uibase/inc/uiitems.hxx b/sw/source/uibase/inc/uiitems.hxx
index ae62aab..ae07807 100644
--- a/sw/source/uibase/inc/uiitems.hxx
+++ b/sw/source/uibase/inc/uiitems.hxx
@@ -59,7 +59,7 @@ class SW_DLLPUBLIC SwPtrItem : public SfxPoolItem
     void* pMisc;
 
 public:
-    SwPtrItem( const sal_uInt16 nId = FN_PARAM_GRF_DIALOG, void* pPtr = nullptr);
+    SwPtrItem( const sal_uInt16 nId, void* pPtr = nullptr);
     SwPtrItem( const SwPtrItem& rItem );
 
     virtual SfxPoolItem*    Clone( SfxItemPool *pPool = nullptr ) const override;
@@ -100,7 +100,7 @@ class SW_DLLPUBLIC SwPaMItem : public SfxPoolItem
     SwPaM* m_pPaM;
 
 public:
-    SwPaMItem( const sal_uInt16 nId = FN_PARAM_PAM, SwPaM* pPaM = nullptr);
+    SwPaMItem( const sal_uInt16 nId, SwPaM* pPaM = nullptr);
     SwPaMItem( const SwPaMItem& rItem );
 
     virtual SfxPoolItem*    Clone( SfxItemPool *pPool = nullptr ) const override;
diff --git a/sw/source/uibase/inc/unotools.hxx b/sw/source/uibase/inc/unotools.hxx
index 79a2637..71a96fc 100644
--- a/sw/source/uibase/inc/unotools.hxx
+++ b/sw/source/uibase/inc/unotools.hxx
@@ -97,8 +97,8 @@ class SW_DLLPUBLIC SwOneExampleFrame
 
 public:
     SwOneExampleFrame(vcl::Window& rWin,
-                    sal_uInt32 nStyleFlags = EX_SHOW_ONLINE_LAYOUT,
-                    const Link<SwOneExampleFrame&,void>* pInitalizedLink = nullptr,
+                    sal_uInt32 nStyleFlags,
+                    const Link<SwOneExampleFrame&,void>* pInitalizedLink,
                     const OUString* pURL = nullptr);
     ~SwOneExampleFrame();
 
diff --git a/sw/source/uibase/inc/wrtsh.hxx b/sw/source/uibase/inc/wrtsh.hxx
index 5f27397..f8ec6a4 100644
--- a/sw/source/uibase/inc/wrtsh.hxx
+++ b/sw/source/uibase/inc/wrtsh.hxx
@@ -179,8 +179,8 @@ public:
     bool    SelNearestWrd();
     bool    SelWrd      (const Point * = nullptr );
     // #i32329# Enhanced selection
-    void    SelSentence (const Point * = nullptr );
-    void    SelPara     (const Point * = nullptr );
+    void    SelSentence (const Point *);
+    void    SelPara     (const Point *);
     long    SelAll();
 
     // basecursortravelling
@@ -422,7 +422,7 @@ typedef bool (SwWrtShell:: *FNSimpleMove)();
     // execute the predefined actions.
     void ClickToField( const SwField& rField );
     void ClickToINetAttr( const SwFormatINetFormat& rItem, sal_uInt16 nFilter = URLLOAD_NOFILTER );
-    bool ClickToINetGrf( const Point& rDocPt, sal_uInt16 nFilter = URLLOAD_NOFILTER );
+    bool ClickToINetGrf( const Point& rDocPt, sal_uInt16 nFilter );
     inline bool IsInClickToEdit() const ;
 
     // if a URL-Button is selected, return its URL; otherwise an empty string
@@ -444,7 +444,7 @@ typedef bool (SwWrtShell:: *FNSimpleMove)();
     // ctor, the first one is a kind of a controlled copy ctor for more views of a document
     SwWrtShell( SwWrtShell&, vcl::Window *pWin, SwView &rShell);
     SwWrtShell( SwDoc& rDoc, vcl::Window *pWin, SwView &rShell,
-                const SwViewOption *pViewOpt = nullptr);
+                const SwViewOption *pViewOpt);
     virtual ~SwWrtShell() override;
 
     bool TryRemoveIndent(); // #i23725#
@@ -565,27 +565,27 @@ private:
     using SwCursorShell::SetCursor;
     SAL_DLLPRIVATE long  SetCursor(const Point *, bool bProp=false );
 
-    SAL_DLLPRIVATE long  SetCursorKillSel(const Point *, bool bProp=false );
+    SAL_DLLPRIVATE long  SetCursorKillSel(const Point *, bool bProp );
 
-    SAL_DLLPRIVATE long  BeginDrag(const Point *, bool bProp=false );
-    SAL_DLLPRIVATE long  DefaultDrag(const Point *, bool bProp=false );
-    SAL_DLLPRIVATE long  DefaultEndDrag(const Point *, bool bProp=false );
+    SAL_DLLPRIVATE long  BeginDrag(const Point *, bool bProp );
+    SAL_DLLPRIVATE long  DefaultDrag(const Point *, bool bProp );
+    SAL_DLLPRIVATE long  DefaultEndDrag(const Point *, bool bProp );
 
-    SAL_DLLPRIVATE long  ExtSelWrd(const Point *, bool bProp=false );
-    SAL_DLLPRIVATE long  ExtSelLn(const Point *, bool bProp=false );
+    SAL_DLLPRIVATE long  ExtSelWrd(const Point *, bool bProp );
+    SAL_DLLPRIVATE long  ExtSelLn(const Point *, bool bProp );
 
-    SAL_DLLPRIVATE long  BeginFrameDrag(const Point *, bool bProp=false );
+    SAL_DLLPRIVATE long  BeginFrameDrag(const Point *, bool bProp );
 
     // after SSize/Move of a frame update; Point is destination.
-    SAL_DLLPRIVATE long  UpdateLayoutFrame(const Point *, bool bProp=false );
+    SAL_DLLPRIVATE long  UpdateLayoutFrame(const Point *, bool bProp );
 
     SAL_DLLPRIVATE void  SttLeaveSelect();
     SAL_DLLPRIVATE void  AddLeaveSelect();
-    SAL_DLLPRIVATE long  Ignore(const Point *, bool bProp=false );
+    SAL_DLLPRIVATE long  Ignore(const Point *, bool bProp );
 
     SAL_DLLPRIVATE void  LeaveExtSel() { m_bSelWrd = m_bSelLn = false;}
 
-    SAL_DLLPRIVATE bool  GoStart(bool KeepArea, bool * = nullptr,
+    SAL_DLLPRIVATE bool  GoStart(bool KeepArea, bool *,
             bool bSelect = false, bool bDontMoveRegion = false);
     SAL_DLLPRIVATE bool  GoEnd(bool KeepArea = false, bool * = nullptr);
 
diff --git a/sw/source/uibase/sidebar/ThemePanel.cxx b/sw/source/uibase/sidebar/ThemePanel.cxx
index 7b63c82..3c84adb 100644
--- a/sw/source/uibase/sidebar/ThemePanel.cxx
+++ b/sw/source/uibase/sidebar/ThemePanel.cxx
@@ -66,7 +66,7 @@ public:
         , mnTintShade()
     {}
 
-    ColorVariable(long nIndex, sal_Int16 nTintShade = 0)
+    ColorVariable(long nIndex, sal_Int16 nTintShade)
         : mnIndex(nIndex)
         , maColor()
         , mnTintShade(nTintShade)
diff --git a/tools/inc/poly.h b/tools/inc/poly.h
index 63c6b73..3be1189 100644
--- a/tools/inc/poly.h
+++ b/tools/inc/poly.h
@@ -36,7 +36,7 @@ class SAL_WARN_UNUSED ImplPolygon  : public ImplPolygonData
 {
 public:
                     ImplPolygon( sal_uInt16 nInitSize, bool bFlags = false );
-                    ImplPolygon( sal_uInt16 nPoints, const Point* pPtAry, const sal_uInt8* pInitFlags = nullptr );
+                    ImplPolygon( sal_uInt16 nPoints, const Point* pPtAry, const sal_uInt8* pInitFlags );
                     ImplPolygon( const ImplPolygon& rImplPoly );
                     ~ImplPolygon();
 
diff --git a/ucb/source/ucp/ftp/ftpurl.hxx b/ucb/source/ucp/ftp/ftpurl.hxx
index f112bfd..0c7d172 100644
--- a/ucb/source/ucp/ftp/ftpurl.hxx
+++ b/ucb/source/ucp/ftp/ftpurl.hxx
@@ -84,11 +84,8 @@ namespace ftp {
 
         FTPURL(
             const OUString& aIdent,
-            FTPContentProvider* pFCP = nullptr
-        )
-            throw(
-                malformed_exception
-            );
+            FTPContentProvider* pFCP
+        ) throw (malformed_exception);
 
         FTPURL(const FTPURL& r);
 
diff --git a/ucb/source/ucp/hierarchy/hierarchydatasupplier.hxx b/ucb/source/ucp/hierarchy/hierarchydatasupplier.hxx
index d3f36c8..27e87c8 100644
--- a/ucb/source/ucp/hierarchy/hierarchydatasupplier.hxx
+++ b/ucb/source/ucp/hierarchy/hierarchydatasupplier.hxx
@@ -43,7 +43,7 @@ public:
     HierarchyResultSetDataSupplier(
                     const css::uno::Reference< css::uno::XComponentContext >& rxContext,
                     const rtl::Reference< HierarchyContent >& rContent,
-                    sal_Int32 nOpenMode = css::ucb::OpenMode::ALL );
+                    sal_Int32 nOpenMode );
     virtual ~HierarchyResultSetDataSupplier() override;
 
     virtual OUString queryContentIdentifierString( sal_uInt32 nIndex ) override;
diff --git a/unoxml/source/dom/elementlist.hxx b/unoxml/source/dom/elementlist.hxx
index d63b22b..d6ce135 100644
--- a/unoxml/source/dom/elementlist.hxx
+++ b/unoxml/source/dom/elementlist.hxx
@@ -66,7 +66,7 @@ namespace DOM
     public:
         CElementListImpl(::rtl::Reference<CElement> const& pElement,
                 ::osl::Mutex & rMutex,
-                OUString const& rName, OUString const*const pURI = nullptr);
+                OUString const& rName, OUString const*const pURI);
 
         void registerListener(CElement & rElement);
 
diff --git a/uui/source/passworddlg.hxx b/uui/source/passworddlg.hxx
index 64ff704..71c81ee 100644
--- a/uui/source/passworddlg.hxx
+++ b/uui/source/passworddlg.hxx
@@ -44,7 +44,7 @@ class PasswordDialog : public ModalDialog
 
 public:
     PasswordDialog( vcl::Window* pParent, css::task::PasswordRequestMode nDlgMode, ResMgr * pResMgr, const OUString& aDocURL,
-            bool bOpenToModify = false, bool bIsSimplePasswordRequest = false );
+            bool bOpenToModify, bool bIsSimplePasswordRequest );
     virtual ~PasswordDialog() override;
     virtual void dispose() override;
 
diff --git a/vcl/inc/brdwin.hxx b/vcl/inc/brdwin.hxx
index 67b900a..e42ca64 100644
--- a/vcl/inc/brdwin.hxx
+++ b/vcl/inc/brdwin.hxx
@@ -120,9 +120,9 @@ public:
                             ImplBorderWindow( vcl::Window* pParent,
                                               SystemParentData* pParentData,
                                               WinBits nStyle,
-                                              BorderWindowStyle nTypeStyle = BorderWindowStyle::NONE );
+                                              BorderWindowStyle nTypeStyle );
                             ImplBorderWindow( vcl::Window* pParent, WinBits nStyle,
-                                              BorderWindowStyle nTypeStyle = BorderWindowStyle::NONE );
+                                              BorderWindowStyle nTypeStyle );
     virtual                 ~ImplBorderWindow() override;
     virtual void            dispose() override;
 
diff --git a/vcl/source/filter/jpeg/jpeg.hxx b/vcl/source/filter/jpeg/jpeg.hxx
index 701a8ea..118ff09 100644
--- a/vcl/source/filter/jpeg/jpeg.hxx
+++ b/vcl/source/filter/jpeg/jpeg.hxx
@@ -32,7 +32,7 @@ VCL_DLLPUBLIC bool ImportJPEG( SvStream& rInputStream, Graphic& rGraphic, void*
 bool ExportJPEG(SvStream& rOutputStream,
                     const Graphic& rGraphic,
                     const css::uno::Sequence< css::beans::PropertyValue >* pFilterData,
-                    bool* pExportWasGrey = nullptr);
+                    bool* pExportWasGrey);
 
 #endif // INCLUDED_VCL_SOURCE_FILTER_JPEG_JPEG_HXX
 


More information about the Libreoffice-commits mailing list