summaryrefslogtreecommitdiff
path: root/sw/source/uibase
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/source/uibase
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/source/uibase')
-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
19 files changed, 51 insertions, 52 deletions
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)