include/svtools/brwbox.hxx | 2 +- include/svtools/calendar.hxx | 2 +- include/svtools/ctrlbox.hxx | 8 ++++---- include/svtools/editbrowsebox.hxx | 2 +- include/svtools/fmtfield.hxx | 6 +++--- include/svtools/grfmgr.hxx | 4 ++-- include/svtools/headbar.hxx | 2 +- include/svtools/htmlout.hxx | 22 +++++++++++----------- include/svtools/hyperlabel.hxx | 2 +- include/svtools/ivctrl.hxx | 2 +- include/svtools/simptabl.hxx | 2 +- include/svtools/svmedit.hxx | 2 +- include/svtools/svmedit2.hxx | 2 +- include/svtools/svtabbx.hxx | 6 +++--- include/svtools/tabbar.hxx | 2 +- include/svtools/treelist.hxx | 2 +- include/svtools/treelistbox.hxx | 8 ++++---- include/svtools/wizdlg.hxx | 2 +- 18 files changed, 39 insertions(+), 39 deletions(-)
New commits: commit ebf04205508227a245885ecb367f1fc8abbd6591 Author: Noel Grandin <noel.gran...@collabora.co.uk> Date: Fri Nov 18 07:51:48 2016 +0200 loplugin:countusersofdefaultparams in include/svtools Change-Id: I9b083fc8430c459624a2ce4ce49408c8d7685776 Reviewed-on: https://gerrit.libreoffice.org/30947 Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> Tested-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/include/svtools/brwbox.hxx b/include/svtools/brwbox.hxx index 903fce8..6a97897 100644 --- a/include/svtools/brwbox.hxx +++ b/include/svtools/brwbox.hxx @@ -389,7 +389,7 @@ protected: virtual void ImplEndTracking(); public: - BrowseBox( vcl::Window* pParent, WinBits nBits = 0, + BrowseBox( vcl::Window* pParent, WinBits nBits, BrowserMode nMode = BrowserMode::NONE ); virtual ~BrowseBox() override; virtual void dispose() override; diff --git a/include/svtools/calendar.hxx b/include/svtools/calendar.hxx index 8cd906d..62d3a9d 100644 --- a/include/svtools/calendar.hxx +++ b/include/svtools/calendar.hxx @@ -246,7 +246,7 @@ protected: DECL_LINK( ScrollHdl, Timer *, void ); public: - Calendar( vcl::Window* pParent, WinBits nWinStyle = 0 ); + Calendar( vcl::Window* pParent, WinBits nWinStyle ); virtual ~Calendar() override; virtual void dispose() override; diff --git a/include/svtools/ctrlbox.hxx b/include/svtools/ctrlbox.hxx index cb5e29d..a98689d 100644 --- a/include/svtools/ctrlbox.hxx +++ b/include/svtools/ctrlbox.hxx @@ -301,7 +301,7 @@ protected: void SaveMRUEntries( const OUString& aFontMRUEntriesFile ) const; public: FontNameBox( vcl::Window* pParent, - WinBits nWinStyle = WB_SORT ); + WinBits nWinStyle ); virtual ~FontNameBox() override; virtual void dispose() override; @@ -370,16 +370,16 @@ protected: virtual OUString CreateFieldText( sal_Int64 nValue ) const override; public: - FontSizeBox( vcl::Window* pParent, WinBits nWinStyle = 0 ); + FontSizeBox( vcl::Window* pParent, WinBits nWinStyle ); void Reformat() override; void Modify() override; void Fill( const FontMetric* pFontMetric, const FontList* pList ); - void EnableRelativeMode( sal_uInt16 nMin, sal_uInt16 nMax = 150, + void EnableRelativeMode( sal_uInt16 nMin, sal_uInt16 nMax, sal_uInt16 nStep = 5 ); - void EnablePtRelativeMode( short nMin, short nMax = 200, + void EnablePtRelativeMode( short nMin, short nMax, short nStep = 10 ); bool IsRelativeMode() const { return bRelativeMode; } void SetRelative( bool bRelative ); diff --git a/include/svtools/editbrowsebox.hxx b/include/svtools/editbrowsebox.hxx index 90cb12d..ab2679c 100644 --- a/include/svtools/editbrowsebox.hxx +++ b/include/svtools/editbrowsebox.hxx @@ -585,7 +585,7 @@ namespace svt // secure starting of StartEditHdl public: - EditBrowseBox(vcl::Window* pParent, EditBrowseBoxFlags nBrowserFlags = EditBrowseBoxFlags::NONE, WinBits nBits = WB_TABSTOP, BrowserMode nMode = BrowserMode::NONE ); + EditBrowseBox(vcl::Window* pParent, EditBrowseBoxFlags nBrowserFlags, WinBits nBits = WB_TABSTOP, BrowserMode nMode = BrowserMode::NONE ); virtual ~EditBrowseBox() override; virtual void dispose() override; diff --git a/include/svtools/fmtfield.hxx b/include/svtools/fmtfield.hxx index fe850c9..bce4e63 100644 --- a/include/svtools/fmtfield.hxx +++ b/include/svtools/fmtfield.hxx @@ -95,7 +95,7 @@ protected: bool m_bUseInputStringForFormatting; public: - FormattedField(vcl::Window* pParent, WinBits nStyle = 0); + FormattedField(vcl::Window* pParent, WinBits nStyle); // Min-/Max-management bool HasMinValue() const { return m_bHasMin; } @@ -258,7 +258,7 @@ protected: validation::NumberValidator* m_pNumberValidator; public: - DoubleNumericField(vcl::Window* pParent, WinBits nStyle = 0) + DoubleNumericField(vcl::Window* pParent, WinBits nStyle) :FormattedField(pParent, nStyle) ,m_pNumberValidator( nullptr ) { @@ -283,7 +283,7 @@ class DoubleCurrencyField : public FormattedField bool m_bChangingFormat; public: - DoubleCurrencyField(vcl::Window* pParent, WinBits nStyle = 0); + DoubleCurrencyField(vcl::Window* pParent, WinBits nStyle); const OUString& getCurrencySymbol() const { return m_sCurrencySymbol; } void setCurrencySymbol(const OUString& rSymbol); diff --git a/include/svtools/grfmgr.hxx b/include/svtools/grfmgr.hxx index 9ca2716..42f0e3e 100644 --- a/include/svtools/grfmgr.hxx +++ b/include/svtools/grfmgr.hxx @@ -564,7 +564,7 @@ private: const GraphicObject& rObj, Graphic& rSubstitute, const OString* pID, - const GraphicObject* pCopyObj = nullptr + const GraphicObject* pCopyObj ); void SVT_DLLPRIVATE ImplUnregisterObj( const GraphicObject& rObj ); inline bool SVT_DLLPRIVATE ImplHasObjects() const { return !maObjList.empty(); } @@ -585,7 +585,7 @@ private: void SVT_DLLPRIVATE ImplCheckSizeOfSwappedInGraphics(const GraphicObject* pGraphicToIgnore); public: - GraphicManager( sal_uLong nCacheSize = 10000000UL, sal_uLong nMaxObjCacheSize = 2400000UL ); + GraphicManager( sal_uLong nCacheSize, sal_uLong nMaxObjCacheSize ); ~GraphicManager(); void SetMaxCacheSize( sal_uLong nNewCacheSize ); diff --git a/include/svtools/headbar.hxx b/include/svtools/headbar.hxx index 44250e8..e0fb1df 100644 --- a/include/svtools/headbar.hxx +++ b/include/svtools/headbar.hxx @@ -268,7 +268,7 @@ private: virtual void ApplySettings(vcl::RenderContext& rRenderContext) override; public: - HeaderBar( vcl::Window* pParent, WinBits nWinBits = WB_STDHEADERBAR ); + HeaderBar( vcl::Window* pParent, WinBits nWinBits ); virtual ~HeaderBar() override; virtual void dispose() override; diff --git a/include/svtools/htmlout.hxx b/include/svtools/htmlout.hxx index ef18c83..33c302b 100644 --- a/include/svtools/htmlout.hxx +++ b/include/svtools/htmlout.hxx @@ -55,11 +55,11 @@ struct HTMLOutFuncs { SVT_DLLPUBLIC static OString ConvertStringToHTML( const OUString& sSrc, rtl_TextEncoding eDestEnc, - OUString *pNonConvertableChars = nullptr ); + OUString *pNonConvertableChars ); SVT_DLLPUBLIC static SvStream& Out_AsciiTag( SvStream&, const sal_Char* pStr, bool bOn = true, - rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252); + rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252); SVT_DLLPUBLIC static SvStream& Out_Char( SvStream&, sal_uInt32 cChar, HTMLOutContext& rContext, OUString *pNonConvertableChars ); @@ -74,10 +74,10 @@ struct HTMLOutFuncs const HTMLOutEvent *pEventTable, bool bOutStarBasic, const sal_Char *pDelim, - const sal_Char *pIndentArea = nullptr, + const sal_Char *pIndentArea, const sal_Char *pIndentMap = nullptr, - rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252, - OUString *pNonConvertableChars = nullptr ); + rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252, + OUString *pNonConvertableChars = nullptr ); SVT_DLLPUBLIC static SvStream& FlushToAscii( SvStream&, HTMLOutContext& rContext ); SVT_DLLPUBLIC static SvStream& OutScript( SvStream& rStrm, @@ -87,16 +87,16 @@ struct HTMLOutFuncs ScriptType eScriptType, const OUString& rSrc, const OUString *pSBLibrary, - const OUString *pSBModule = nullptr, - rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252, - OUString *pNonConvertableChars = nullptr ); + const OUString *pSBModule, + rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252, + OUString *pNonConvertableChars = nullptr ); // the 3rd parameter is an array of HTMLOutEvents which is terminated // by an entry that consists only of 0s SVT_DLLPUBLIC static SvStream& Out_Events( SvStream&, const SvxMacroTableDtor&, - const HTMLOutEvent*, bool bOutStarBasic, - rtl_TextEncoding eDestEnc, - OUString *pNonConvertableChars = nullptr ); + const HTMLOutEvent*, bool bOutStarBasic, + rtl_TextEncoding eDestEnc, + OUString *pNonConvertableChars ); // <TD SDVAL="..." SDNUM="..."> SVT_DLLPUBLIC static OString CreateTableDataOptionsValNum( diff --git a/include/svtools/hyperlabel.hxx b/include/svtools/hyperlabel.hxx index 94546f0..f9aeeec 100644 --- a/include/svtools/hyperlabel.hxx +++ b/include/svtools/hyperlabel.hxx @@ -49,7 +49,7 @@ namespace svt void implInit(); public: - HyperLabel( vcl::Window* _pParent, WinBits _nWinStyle = 0 ); + HyperLabel( vcl::Window* _pParent, WinBits _nWinStyle ); virtual ~HyperLabel( ) override; virtual void dispose() override; diff --git a/include/svtools/ivctrl.hxx b/include/svtools/ivctrl.hxx index 75ecace..995058d 100644 --- a/include/svtools/ivctrl.hxx +++ b/include/svtools/ivctrl.hxx @@ -223,7 +223,7 @@ protected: public: - SvtIconChoiceCtrl( vcl::Window* pParent, WinBits nWinStyle = WB_ICON | WB_BORDER ); + SvtIconChoiceCtrl( vcl::Window* pParent, WinBits nWinStyle ); virtual ~SvtIconChoiceCtrl() override; virtual void dispose() override; diff --git a/include/svtools/simptabl.hxx b/include/svtools/simptabl.hxx index ca0f5b6..40c31d1 100644 --- a/include/svtools/simptabl.hxx +++ b/include/svtools/simptabl.hxx @@ -35,7 +35,7 @@ protected: virtual bool PreNotify( NotifyEvent& rNEvt ) override; public: - SvSimpleTableContainer( vcl::Window* pParent, WinBits nBits = WB_BORDER ); + SvSimpleTableContainer( vcl::Window* pParent, WinBits nBits ); virtual ~SvSimpleTableContainer() override; virtual void dispose() override; diff --git a/include/svtools/svmedit.hxx b/include/svtools/svmedit.hxx index 3b86f8f..e549352 100644 --- a/include/svtools/svmedit.hxx +++ b/include/svtools/svmedit.hxx @@ -30,7 +30,7 @@ class SVT_DLLPUBLIC MultiLineEdit : public VclMultiLineEdit { public: - MultiLineEdit( vcl::Window* pParent, WinBits nWinStyle = WB_LEFT | WB_BORDER ); + MultiLineEdit( vcl::Window* pParent, WinBits nWinStyle ); virtual css::uno::Reference< css::awt::XWindowPeer > GetComponentInterface(bool bCreate = true) override; }; diff --git a/include/svtools/svmedit2.hxx b/include/svtools/svmedit2.hxx index b89d54a..32bc78b 100644 --- a/include/svtools/svmedit2.hxx +++ b/include/svtools/svmedit2.hxx @@ -27,7 +27,7 @@ class TextAttrib; class SVT_DLLPUBLIC ExtMultiLineEdit : public MultiLineEdit { public: - ExtMultiLineEdit( vcl::Window* pParent, WinBits nWinStyle = WB_LEFT | WB_BORDER ); + ExtMultiLineEdit( vcl::Window* pParent, WinBits nWinStyle ); // methods of TextView void InsertText( const OUString& rNew ); diff --git a/include/svtools/svtabbx.hxx b/include/svtools/svtabbx.hxx index 03580f1..71e3629 100644 --- a/include/svtools/svtabbx.hxx +++ b/include/svtools/svtabbx.hxx @@ -63,7 +63,7 @@ protected: SvTreeListEntry* GetChildOnPos( SvTreeListEntry* _pParent, sal_uLong _nEntryPos, sal_uLong& _rPos ) const; public: - SvTabListBox( vcl::Window* pParent, WinBits = WB_BORDER ); + SvTabListBox( vcl::Window* pParent, WinBits ); virtual ~SvTabListBox() override; virtual void dispose() override; void SetTabs(const long* pTabs, MapUnit = MapUnit::MapAppFont); @@ -91,7 +91,7 @@ public: virtual SvTreeListEntry* InsertEntryToColumn( const OUString&, SvTreeListEntry* pParent, sal_uLong nPos, sal_uInt16 nCol, void* pUserData = nullptr ); virtual SvTreeListEntry* InsertEntryToColumn( const OUString&, const Image& rExpandedEntryBmp, - const Image& rCollapsedEntryBmp, SvTreeListEntry* pParent = nullptr, + const Image& rCollapsedEntryBmp, SvTreeListEntry* pParent, sal_uLong nPos = TREELIST_APPEND, sal_uInt16 nCol = 0xffff, void* pUserData = nullptr ); virtual OUString GetEntryText( SvTreeListEntry* pEntry ) const override; @@ -151,7 +151,7 @@ public: virtual SvTreeListEntry* InsertEntryToColumn( const OUString&, SvTreeListEntry* pParent, sal_uLong nPos, sal_uInt16 nCol, void* pUserData = nullptr ) override; virtual SvTreeListEntry* InsertEntryToColumn( const OUString&, const Image& rExpandedEntryBmp, - const Image& rCollapsedEntryBmp, SvTreeListEntry* pParent = nullptr, + const Image& rCollapsedEntryBmp, SvTreeListEntry* pParent, sal_uLong nPos = TREELIST_APPEND, sal_uInt16 nCol = 0xffff, void* pUserData = nullptr ) override; virtual sal_uLong Insert( SvTreeListEntry* pEnt,SvTreeListEntry* pPar,sal_uLong nPos=TREELIST_APPEND) override; virtual sal_uLong Insert( SvTreeListEntry* pEntry, sal_uLong nRootPos = TREELIST_APPEND ) override; diff --git a/include/svtools/tabbar.hxx b/include/svtools/tabbar.hxx index 5549825..2b98303 100644 --- a/include/svtools/tabbar.hxx +++ b/include/svtools/tabbar.hxx @@ -366,7 +366,7 @@ public: static const sal_uInt16 APPEND; static const sal_uInt16 PAGE_NOT_FOUND; - TabBar( vcl::Window* pParent, WinBits nWinStyle = WB_STDTABBAR ); + TabBar( vcl::Window* pParent, WinBits nWinStyle ); virtual ~TabBar() override; virtual void dispose() override; diff --git a/include/svtools/treelist.hxx b/include/svtools/treelist.hxx index 4b2d918..35358a3 100644 --- a/include/svtools/treelist.hxx +++ b/include/svtools/treelist.hxx @@ -99,7 +99,7 @@ class SVT_DLLPUBLIC SvTreeList final SvTreeListEntry* PrevSelected( const SvListView*,SvTreeListEntry* pEntry ) const; SvTreeListEntry* LastSelected( const SvListView*) const; - static bool Select( SvListView*,SvTreeListEntry* pEntry, bool bSelect=true ); + static bool Select( SvListView*,SvTreeListEntry* pEntry, bool bSelect ); void SelectAll( SvListView*, bool bSelect ); // Does not call Select Handler sal_uLong GetChildSelectionCount( const SvListView*,SvTreeListEntry* pParent ) const; diff --git a/include/svtools/treelistbox.hxx b/include/svtools/treelistbox.hxx index d9ac1b5..54003c2 100644 --- a/include/svtools/treelistbox.hxx +++ b/include/svtools/treelistbox.hxx @@ -132,7 +132,7 @@ class SvLBoxTab void* pUserData; public: SvLBoxTab(); - SvLBoxTab( long nPos, SvLBoxTabFlags nFlags = SvLBoxTabFlags::ADJUST_LEFT ); + SvLBoxTab( long nPos, SvLBoxTabFlags nFlags ); SvLBoxTab( const SvLBoxTab& ); ~SvLBoxTab(); @@ -555,7 +555,7 @@ protected: // Recalculate all tabs depending on TreeListStyle and Bitmap sizes // Is called automatically when inserting/changing Bitmaps, changing the Model etc. virtual void SetTabs(); - void AddTab( long nPos, SvLBoxTabFlags nFlags=SvLBoxTabFlags::ADJUST_LEFT ); + void AddTab( long nPos, SvLBoxTabFlags nFlags ); sal_uInt16 TabCount() const { return aTabs.size(); } SvLBoxTab* GetFirstDynamicTab() const; SvLBoxTab* GetFirstDynamicTab( sal_uInt16& rTabPos ) const; @@ -662,7 +662,7 @@ public: void EnableInplaceEditing( bool bEnable ); // Edits the Entry's first StringItem, 0 == Cursor - void EditEntry( SvTreeListEntry* pEntry = nullptr ); + void EditEntry( SvTreeListEntry* pEntry ); virtual bool EditingEntry( SvTreeListEntry* pEntry, Selection& ); virtual bool EditedEntry( SvTreeListEntry* pEntry, const OUString& rNewText ); @@ -804,7 +804,7 @@ public: bool EditingCanceled() const { return bCanceled; } OUString GetText() const; OUString GetSavedValue() const; - void StopEditing( bool bCancel = false ); + void StopEditing( bool bCancel ); void Hide(); }; diff --git a/include/svtools/wizdlg.hxx b/include/svtools/wizdlg.hxx index a115a1a..39b9d3f 100644 --- a/include/svtools/wizdlg.hxx +++ b/include/svtools/wizdlg.hxx @@ -228,7 +228,7 @@ private: SVT_DLLPRIVATE TabPage* ImplGetPage( sal_uInt16 nLevel ) const; public: - WizardDialog( vcl::Window* pParent, WinBits nStyle = WB_STDTABDIALOG ); + WizardDialog( vcl::Window* pParent, WinBits nStyle ); WizardDialog( vcl::Window* pParent, const OUString& rID, const OUString& rUIXMLDescription ); virtual ~WizardDialog() override; virtual void dispose() override; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits