summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-10-03 09:00:41 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-10-03 11:10:56 +0000
commit8f62ca8e2f33a63b62dd7c39b8e002b03d6c4d95 (patch)
treea7a05a3be99ff8e72d666a39b01f9a07ba01c583 /sw
parentdc306db9b51e6f009803f7ba633674dc2840ac08 (diff)
loplugin:countusersofdefaultparams in sw..vcl
Change-Id: I152df55f5a30e073c66cfd3a64d5090a20cb232d Reviewed-on: https://gerrit.libreoffice.org/29471 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/text/portab.hxx12
-rw-r--r--sw/source/core/unocore/unoobj2.cxx4
-rw-r--r--sw/source/core/unocore/unostyle.cxx2
-rw-r--r--sw/source/filter/html/htmltab.cxx2
-rw-r--r--sw/source/filter/html/htmltabw.cxx2
-rw-r--r--sw/source/filter/html/svxcss1.hxx2
-rw-r--r--sw/source/filter/html/swhtml.hxx2
-rw-r--r--sw/source/filter/ww8/ww8glsy.hxx2
-rw-r--r--sw/source/filter/ww8/ww8scan.hxx4
-rw-r--r--sw/source/filter/ww8/ww8toolbar.hxx12
-rw-r--r--sw/source/filter/xml/xmltbli.hxx2
-rw-r--r--sw/source/ui/dbui/mmaddressblockpage.hxx2
-rw-r--r--sw/source/uibase/inc/DropDownFieldDialog.hxx2
-rw-r--r--sw/source/uibase/inc/chrdlg.hxx2
-rw-r--r--sw/source/uibase/inc/frmdlg.hxx2
-rw-r--r--sw/source/uibase/inc/glshell.hxx2
-rw-r--r--sw/source/uibase/inc/inpdlg.hxx2
-rw-r--r--sw/source/uibase/inc/insfnote.hxx2
-rw-r--r--sw/source/uibase/inc/mailmergehelper.hxx2
-rw-r--r--sw/source/uibase/inc/mailmrge.hxx2
-rw-r--r--sw/source/uibase/inc/numberingtypelistbox.hxx2
-rw-r--r--sw/source/uibase/inc/scroll.hxx2
-rw-r--r--sw/source/uibase/inc/swuicnttab.hxx2
-rw-r--r--sw/source/uibase/inc/swuiidxmrk.hxx29
-rw-r--r--sw/source/uibase/inc/swuipardlg.hxx2
-rw-r--r--sw/source/uibase/inc/tautofmt.hxx4
-rw-r--r--sw/source/uibase/inc/tmpdlg.hxx8
-rw-r--r--sw/source/uibase/inc/uiitems.hxx4
-rw-r--r--sw/source/uibase/inc/unotools.hxx4
-rw-r--r--sw/source/uibase/inc/wrtsh.hxx28
-rw-r--r--sw/source/uibase/sidebar/ThemePanel.cxx2
31 files changed, 75 insertions, 76 deletions
diff --git a/sw/source/core/text/portab.hxx b/sw/source/core/text/portab.hxx
index 5261a96d6325..de1af65346d6 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 97ea2e708a97..da92fcaa2ad5 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 44fcda9e3a6b..1a83620911ee 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 f86f8625ed47..9ffcb7a0dfc3 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 fb3fa035549a..3f98d4103c5e 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 28327f6799a1..34b6bd798615 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 e861d2f811f9..6ec45ba17670 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 c0d03b2cf673..abd9518015ef 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 221eedb37505..9e8a155f717d 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 870102503c44..5dd318177faf 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 da26c301be68..091de4683d22 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 aa2bb64eddd8..4c1632bf0d2f 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 2c378dd5e091..7b18b6bc918c 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 a52e1a5bd30b..97534091109f 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 a0f226c063f3..b31931dd8877 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 f682b48cf62e..1b98556cb64b 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 11672e5f6239..1c75245edf55 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 4065f453754b..f8c24464d0ab 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 fdf3275033fc..cb9b4a20789b 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 b5a3550f9f69..a0d801fb7654 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 c07af4624195..71d117311f6d 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 d9a825af848c..a2dc6e31b9ef 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 266f3d9476ae..f6e6d1dd14c6 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 862c845d0b2d..a6c084f53ff1 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 c1ebe82ce528..880289081217 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 901b9dd131ab..bf790bfe4611 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 72bbda23b4af..c4a14d61ca0d 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 ae62aabcaed8..ae078078aad6 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 79a2637af50a..71a96fc908f8 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 5f2739776b9d..f8ec6a41797a 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 7b63c822b976..3c84adbda75d 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)