diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-15 13:36:03 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-16 06:32:00 +0000 |
commit | 3c73942c8c4b97ee9ede65890e1b1db3cac753c5 (patch) | |
tree | 1d7187f7c02211f5cc1658022aed0437885d7bdf | |
parent | 121a202076f0ada98e5e3697e4e15a48b477523e (diff) |
loplugin:countusersofdefaultparams in include/svx..unotools
Change-Id: I02e933da66241e99e3b81d90d679f1502bab3fef
Reviewed-on: https://gerrit.libreoffice.org/30866
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
65 files changed, 101 insertions, 108 deletions
diff --git a/cui/source/factory/dlgfact.hxx b/cui/source/factory/dlgfact.hxx index adf568ecaaae..2170fd8b637e 100644 --- a/cui/source/factory/dlgfact.hxx +++ b/cui/source/factory/dlgfact.hxx @@ -587,7 +587,7 @@ public: virtual VclPtr<SfxAbstractTabDialog> CreateSvxLineTabDialog( vcl::Window* pParent, const SfxItemSet* pAttr, SdrModel* pModel, const SdrObject* pObj, - bool bHasObj = true ) override; + bool bHasObj ) override; virtual VclPtr<AbstractSvxPostItDialog> CreateSvxPostItDialog( vcl::Window* pParent, const SfxItemSet& rCoreSet, bool bPrevNext = false ) override; diff --git a/cui/source/tabpages/paragrph.cxx b/cui/source/tabpages/paragrph.cxx index e8ffffa958b1..2f630444a9c7 100644 --- a/cui/source/tabpages/paragrph.cxx +++ b/cui/source/tabpages/paragrph.cxx @@ -610,11 +610,11 @@ void SvxStdParagraphTabPage::EnableRelativeMode() { DBG_ASSERT( GetItemSet().GetParent(), "RelativeMode, but no parent-set!" ); - m_pLeftIndent->EnableRelativeMode( 0, 999 ); - m_pFLineIndent->EnableRelativeMode( 0, 999 ); - m_pRightIndent->EnableRelativeMode( 0, 999 ); - m_pTopDist->EnableRelativeMode( 0, 999 ); - m_pBottomDist->EnableRelativeMode( 0, 999 ); + m_pLeftIndent->EnableRelativeMode( 0, 999, 5 ); + m_pFLineIndent->EnableRelativeMode( 0, 999, 5 ); + m_pRightIndent->EnableRelativeMode( 0, 999, 5 ); + m_pTopDist->EnableRelativeMode( 0, 999, 5 ); + m_pBottomDist->EnableRelativeMode( 0, 999, 5 ); bRelativeMode = true; } diff --git a/include/svx/AffineMatrixItem.hxx b/include/svx/AffineMatrixItem.hxx index 78e169519659..86ce359568ba 100644 --- a/include/svx/AffineMatrixItem.hxx +++ b/include/svx/AffineMatrixItem.hxx @@ -29,7 +29,7 @@ private: css::geometry::AffineMatrix2D maMatrix; public: - AffineMatrixItem(const css::geometry::AffineMatrix2D* pMatrix = nullptr); + AffineMatrixItem(const css::geometry::AffineMatrix2D* pMatrix); AffineMatrixItem(SvStream& rIn); AffineMatrixItem(const AffineMatrixItem&); virtual ~AffineMatrixItem() override; diff --git a/include/svx/CommonStylePreviewRenderer.hxx b/include/svx/CommonStylePreviewRenderer.hxx index 790110d04478..dc5ed5038317 100644 --- a/include/svx/CommonStylePreviewRenderer.hxx +++ b/include/svx/CommonStylePreviewRenderer.hxx @@ -30,7 +30,7 @@ class SVX_DLLPUBLIC CommonStylePreviewRenderer : public sfx2::StylePreviewRender public: CommonStylePreviewRenderer(const SfxObjectShell& rShell, OutputDevice& rOutputDev, - SfxStyleSheetBase* pStyle, long nMaxHeight = 32); + SfxStyleSheetBase* pStyle, long nMaxHeight); virtual ~CommonStylePreviewRenderer() override; virtual bool recalculate() override; diff --git a/include/svx/SvxColorValueSet.hxx b/include/svx/SvxColorValueSet.hxx index 0b9f53366cb5..1e6d6a615c79 100644 --- a/include/svx/SvxColorValueSet.hxx +++ b/include/svx/SvxColorValueSet.hxx @@ -28,7 +28,7 @@ class XColorList; class SVX_DLLPUBLIC SvxColorValueSet : public ValueSet { public: - SvxColorValueSet(vcl::Window* pParent, WinBits nWinStyle = WB_ITEMBORDER); + SvxColorValueSet(vcl::Window* pParent, WinBits nWinStyle); virtual void Resize() override; diff --git a/include/svx/SvxPresetListBox.hxx b/include/svx/SvxPresetListBox.hxx index 6dfa031bbce6..c9c75a5a8c7a 100644 --- a/include/svx/SvxPresetListBox.hxx +++ b/include/svx/SvxPresetListBox.hxx @@ -41,7 +41,7 @@ private: void FillPresetListBoxImpl(ListType& pList, sal_uInt32 nStartIndex); public: - SvxPresetListBox(vcl::Window* pParent, WinBits nWinStyle = WB_ITEMBORDER); + SvxPresetListBox(vcl::Window* pParent, WinBits nWinStyle); virtual void Resize() override; virtual void Command( const CommandEvent& rEvt ) override; diff --git a/include/svx/clipfmtitem.hxx b/include/svx/clipfmtitem.hxx index 75b89fd4041e..6d4fcb493a94 100644 --- a/include/svx/clipfmtitem.hxx +++ b/include/svx/clipfmtitem.hxx @@ -35,7 +35,7 @@ protected: public: static SfxPoolItem* CreateDefault(); - SvxClipboardFormatItem( sal_uInt16 nId = 0 ); + SvxClipboardFormatItem( sal_uInt16 nId ); SvxClipboardFormatItem( const SvxClipboardFormatItem& ); virtual ~SvxClipboardFormatItem() override; diff --git a/include/svx/contdlg.hxx b/include/svx/contdlg.hxx index d60c929be112..bbb7d5d7dba8 100644 --- a/include/svx/contdlg.hxx +++ b/include/svx/contdlg.hxx @@ -69,7 +69,7 @@ public: const void* GetEditingObject() const; void Update( const Graphic& rGraphic, bool bGraphicLinked, - const tools::PolyPolygon* pPolyPoly, void* pEditingObj = nullptr ); + const tools::PolyPolygon* pPolyPoly, void* pEditingObj ); static tools::PolyPolygon CreateAutoContour( const Graphic& rGraphic, const Rectangle* pRect = nullptr, diff --git a/include/svx/dlgctl3d.hxx b/include/svx/dlgctl3d.hxx index 8e48d52090e7..056056db8d86 100644 --- a/include/svx/dlgctl3d.hxx +++ b/include/svx/dlgctl3d.hxx @@ -98,7 +98,7 @@ class SAL_WARN_UNUSED SVX_DLLPUBLIC Svx3DLightControl : public Svx3DPreviewContr void TrySelection(Point aPosPixel); public: - Svx3DLightControl(vcl::Window* pParent, WinBits nStyle = 0); + Svx3DLightControl(vcl::Window* pParent, WinBits nStyle); virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRect) override; virtual void MouseButtonDown(const MouseEvent& rMEvt) override; diff --git a/include/svx/dlgctrl.hxx b/include/svx/dlgctrl.hxx index 39cc688b4ded..07e61f525674 100644 --- a/include/svx/dlgctrl.hxx +++ b/include/svx/dlgctrl.hxx @@ -109,8 +109,7 @@ protected: public: SvxRectCtl( vcl::Window* pParent, RectPoint eRpt = RectPoint::MM, sal_uInt16 nBorder = 200, sal_uInt16 nCircle = 80 ); - void SetControlSettings(RectPoint eRpt, sal_uInt16 nBorder = 200, - sal_uInt16 nCircle = 80); + void SetControlSettings(RectPoint eRpt, sal_uInt16 nBorder, sal_uInt16 nCircl); virtual ~SvxRectCtl() override; virtual void dispose() override; diff --git a/include/svx/fmview.hxx b/include/svx/fmview.hxx index f7191296e970..5e28fe49fc50 100644 --- a/include/svx/fmview.hxx +++ b/include/svx/fmview.hxx @@ -62,7 +62,7 @@ class SVX_DLLPUBLIC FmFormView : public E3dView public: - FmFormView(FmFormModel* pModel, OutputDevice* pOut = nullptr); + FmFormView(FmFormModel* pModel, OutputDevice* pOut); virtual ~FmFormView() override; /** create a control pair (label/bound control) for the database field description given. diff --git a/include/svx/fontlb.hxx b/include/svx/fontlb.hxx index f7601b58e940..fb742cf106e8 100644 --- a/include/svx/fontlb.hxx +++ b/include/svx/fontlb.hxx @@ -38,7 +38,7 @@ public: SvLBoxFontString( const OUString& rString, const vcl::Font& rFont, - const Color* pColor = nullptr ); + const Color* pColor ); virtual ~SvLBoxFontString() override; @@ -65,7 +65,7 @@ private: bool mbUseFont; /// true = Use maEntryFont/mpEntryColor in InitEntry(). public: - SvxFontListBox(vcl::Window* pParent, WinBits nStyle = WB_BORDER); + SvxFontListBox(vcl::Window* pParent, WinBits nStyle); /** Inserts a list entry and sets the font used for this entry. @param pColor The font color. NULL = use default listbox text color. */ diff --git a/include/svx/framelink.hxx b/include/svx/framelink.hxx index 451c6573a072..ab5e4728c89a 100644 --- a/include/svx/framelink.hxx +++ b/include/svx/framelink.hxx @@ -625,7 +625,7 @@ SVX_DLLPUBLIC void DrawDiagFrameBorders( const Style& rTRFromL, /// Horizontal frame border from left to top-right end of rBLTR. const Color* pForceColor, /// If specified, overrides frame border color. - bool bDiagDblClip = false /// true = Use clipping for crossing double frame borders. + bool bDiagDblClip /// true = Use clipping for crossing double frame borders. ); diff --git a/include/svx/gridctrl.hxx b/include/svx/gridctrl.hxx index 5e44375c0029..b3838645a103 100644 --- a/include/svx/gridctrl.hxx +++ b/include/svx/gridctrl.hxx @@ -178,7 +178,7 @@ public: class AbsolutePos : public NumericField { public: - AbsolutePos(vcl::Window* pParent, WinBits nStyle = 0); + AbsolutePos(vcl::Window* pParent, WinBits nStyle); virtual void KeyInput(const KeyEvent& rEvt) override; virtual void LoseFocus() override; @@ -207,7 +207,7 @@ public: virtual void dispose() override; // Status methods for Controls - void InvalidateAll(sal_Int32 nCurrentPos = -1, bool bAll = false); + void InvalidateAll(sal_Int32 nCurrentPos, bool bAll = false); void InvalidateState(DbGridControlNavigationBarState nWhich) {SetState(nWhich);} void SetState(DbGridControlNavigationBarState nWhich); bool GetState(DbGridControlNavigationBarState nWhich) const; @@ -373,7 +373,7 @@ public: DbGridControl( css::uno::Reference< css::uno::XComponentContext > const & _rxContext, vcl::Window* pParent, - WinBits nBits = WB_BORDER); + WinBits nBits); virtual ~DbGridControl() override; virtual void dispose() override; diff --git a/include/svx/hlnkitem.hxx b/include/svx/hlnkitem.hxx index b851f42ac968..902546d1eeb6 100644 --- a/include/svx/hlnkitem.hxx +++ b/include/svx/hlnkitem.hxx @@ -64,7 +64,7 @@ public: SvxHyperlinkItem( const SvxHyperlinkItem& rHyperlinkItem ); SvxHyperlinkItem( sal_uInt16 nWhich, const OUString& rName, const OUString& rURL, const OUString& rTarget, const OUString& rIntName, - SvxLinkInsertMode eTyp = HLINK_FIELD, + SvxLinkInsertMode eTyp, HyperDialogEvent nEvents = HyperDialogEvent::NONE, SvxMacroTableDtor *pMacroTbl =nullptr ); virtual ~SvxHyperlinkItem () override { delete pMacroTable; } diff --git a/include/svx/imapdlg.hxx b/include/svx/imapdlg.hxx index b20e6f9478c5..b5e48d861be6 100644 --- a/include/svx/imapdlg.hxx +++ b/include/svx/imapdlg.hxx @@ -52,7 +52,7 @@ class SVX_DLLPUBLIC SvxIMapDlgChildWindow : public SfxChildWindow SFX_DECL_CHILDWINDOW_WITHID( SvxIMapDlgChildWindow ); static void UpdateIMapDlg( const Graphic& rGraphic, const ImageMap* pImageMap, - const TargetList* pTargetList = nullptr, void* pEditingObj = nullptr ); + const TargetList* pTargetList, void* pEditingObj = nullptr ); }; @@ -149,7 +149,7 @@ public: void SetTargetList( const TargetList& rTargetList ); void UpdateLink( const Graphic& rGraphic, const ImageMap* pImageMap, - const TargetList* pTargetList = nullptr, void* pEditingObj = nullptr ); + const TargetList* pTargetList, void* pEditingObj = nullptr ); }; SVX_DLLPUBLIC SvxIMapDlg* GetIMapDlg(); diff --git a/include/svx/nbdtmg.hxx b/include/svx/nbdtmg.hxx index e1f14e0c6ce1..bfab0071e3cc 100644 --- a/include/svx/nbdtmg.hxx +++ b/include/svx/nbdtmg.hxx @@ -155,7 +155,7 @@ class SVX_DLLPUBLIC NBOTypeMgrBase virtual sal_uInt16 GetNBOIndexForNumRule(SvxNumRule& aNum,sal_uInt16 mLevel,sal_uInt16 nFromIndex=0) = 0; virtual void RelplaceNumRule(SvxNumRule& aNum, sal_uInt16 nIndex, sal_uInt16 mLevel) = 0; virtual void ApplyNumRule(SvxNumRule& aNum, sal_uInt16 nIndex, sal_uInt16 mLevel, bool isDefault=false,bool isResetSize=false) = 0; - virtual OUString GetDescription(sal_uInt16 nIndex,bool isDefault=false)=0; + virtual OUString GetDescription(sal_uInt16 nIndex, bool isDefault)=0; virtual bool IsCustomized(sal_uInt16 nIndex)=0; static sal_uInt16 IsSingleLevel(sal_uInt16 nCurLevel); // store the attributes passed from pSet @@ -188,7 +188,7 @@ class SVX_DLLPUBLIC BulletsTypeMgr: public NBOTypeMgrBase virtual sal_uInt16 GetNBOIndexForNumRule(SvxNumRule& aNum,sal_uInt16 mLevel,sal_uInt16 nFromIndex=0) override; virtual void RelplaceNumRule(SvxNumRule& aNum, sal_uInt16 nIndex, sal_uInt16 mLevel) override; virtual void ApplyNumRule(SvxNumRule& aNum, sal_uInt16 nIndex, sal_uInt16 mLevel, bool isDefault=false,bool isResetSize=false) override; - virtual OUString GetDescription(sal_uInt16 nIndex,bool isDefault=false) override; + virtual OUString GetDescription(sal_uInt16 nIndex, bool isDefault) override; virtual bool IsCustomized(sal_uInt16 nIndex) override; static BulletsTypeMgr& GetInstance(); }; @@ -208,7 +208,7 @@ class SVX_DLLPUBLIC NumberingTypeMgr: public NBOTypeMgrBase virtual sal_uInt16 GetNBOIndexForNumRule(SvxNumRule& aNum,sal_uInt16 mLevel,sal_uInt16 nFromIndex=0) override; virtual void RelplaceNumRule(SvxNumRule& aNum, sal_uInt16 nIndex, sal_uInt16 mLevel) override; virtual void ApplyNumRule(SvxNumRule& aNum, sal_uInt16 nIndex, sal_uInt16 mLevel, bool isDefault=false,bool isResetSize=false) override; - virtual OUString GetDescription(sal_uInt16 nIndex,bool isDefault=false) override; + virtual OUString GetDescription(sal_uInt16 nIndex, bool isDefault) override; virtual bool IsCustomized(sal_uInt16 nIndex) override; static NumberingTypeMgr& GetInstance(); }; @@ -227,7 +227,7 @@ class SVX_DLLPUBLIC OutlineTypeMgr: public NBOTypeMgrBase virtual sal_uInt16 GetNBOIndexForNumRule(SvxNumRule& aNum,sal_uInt16 mLevel,sal_uInt16 nFromIndex=0) override; virtual void RelplaceNumRule(SvxNumRule& aNum, sal_uInt16 nIndex, sal_uInt16 mLevel) override; virtual void ApplyNumRule(SvxNumRule& aNum, sal_uInt16 nIndex, sal_uInt16 mLevel, bool isDefault=false,bool isResetSize=false) override; - virtual OUString GetDescription(sal_uInt16 nIndex,bool isDefault=false) override; + virtual OUString GetDescription(sal_uInt16 nIndex, bool isDefault) override; virtual bool IsCustomized(sal_uInt16 nIndex) override; static OutlineTypeMgr& GetInstance(); }; diff --git a/include/svx/numfmtsh.hxx b/include/svx/numfmtsh.hxx index f039ae9a0b6a..a7d0fb7662f1 100644 --- a/include/svx/numfmtsh.hxx +++ b/include/svx/numfmtsh.hxx @@ -67,7 +67,7 @@ public: sal_uInt32 nFormatKey, SvxNumberValueType eNumValType, double nNumVal, - const OUString* pNumStr = nullptr ); + const OUString* pNumStr ); ~SvxNumberFormatShell(); diff --git a/include/svx/numvset.hxx b/include/svx/numvset.hxx index 708eeb78ef97..bc63ae1033fd 100644 --- a/include/svx/numvset.hxx +++ b/include/svx/numvset.hxx @@ -73,7 +73,7 @@ class SVX_DLLPUBLIC SvxNumValueSet : public ValueSet css::container::XIndexAccess> > aOutlineSettings; public: - SvxNumValueSet(vcl::Window* pParent, WinBits nWinBits = WB_TABSTOP); + SvxNumValueSet(vcl::Window* pParent, WinBits nWinBits); void init(NumberingPageType eType); virtual ~SvxNumValueSet() override; virtual void dispose() override; @@ -104,7 +104,7 @@ protected: DECL_LINK(FormatHdl_Impl, Idle *, void); public: - SvxBmpNumValueSet(vcl::Window* pParent, WinBits nWinBits = WB_TABSTOP); + SvxBmpNumValueSet(vcl::Window* pParent, WinBits nWinBits); virtual ~SvxBmpNumValueSet() override; virtual void dispose() override; diff --git a/include/svx/passwd.hxx b/include/svx/passwd.hxx index 448c78513942..c61ddafdc918 100644 --- a/include/svx/passwd.hxx +++ b/include/svx/passwd.hxx @@ -51,7 +51,7 @@ private: DECL_LINK(EditModifyHdl, Edit&, void); public: - SvxPasswordDialog( vcl::Window* pParent, bool bAllowEmptyPasswords = false, bool bDisableOldPassword = false ); + SvxPasswordDialog( vcl::Window* pParent, bool bAllowEmptyPasswords, bool bDisableOldPassword = false ); virtual ~SvxPasswordDialog() override; virtual void dispose() override; diff --git a/include/svx/relfld.hxx b/include/svx/relfld.hxx index 66525892e3f2..26feb9a81a1e 100644 --- a/include/svx/relfld.hxx +++ b/include/svx/relfld.hxx @@ -42,8 +42,8 @@ protected: public: SvxRelativeField(vcl::Window* pParent, WinBits nBits, FieldUnit eUnit); - void EnableRelativeMode( sal_uInt16 nMin, sal_uInt16 nMax = 150, - sal_uInt16 nStep = 5 ); + void EnableRelativeMode( sal_uInt16 nMin, sal_uInt16 nMax, + sal_uInt16 nStep ); void SetRelative( bool bRelative ); bool IsRelative() const { return bRelative; } void EnableNegativeMode() {bNegativeEnabled = true;} diff --git a/include/svx/rotmodit.hxx b/include/svx/rotmodit.hxx index 330b32d21bfc..f04420095ff9 100644 --- a/include/svx/rotmodit.hxx +++ b/include/svx/rotmodit.hxx @@ -39,7 +39,7 @@ class SVX_DLLPUBLIC SvxRotateModeItem: public SfxEnumItem public: static SfxPoolItem* CreateDefault(); - SvxRotateModeItem( SvxRotateMode eMode=SVX_ROTATE_MODE_STANDARD, sal_uInt16 nWhich=0); + SvxRotateModeItem( SvxRotateMode eMode, sal_uInt16 nWhich=0); SvxRotateModeItem( const SvxRotateModeItem& rItem ); virtual ~SvxRotateModeItem() override; diff --git a/include/svx/rulritem.hxx b/include/svx/rulritem.hxx index 1078f9da3e5a..8ee0ec0db302 100644 --- a/include/svx/rulritem.hxx +++ b/include/svx/rulritem.hxx @@ -133,10 +133,10 @@ struct SVX_DLLPUBLIC SvxColumnDescription SvxColumnDescription(const SvxColumnDescription &rCopy); - SvxColumnDescription(long start, long end, bool bVis = true); + SvxColumnDescription(long start, long end, bool bVis); SvxColumnDescription(long start, long end, - long endMin, long endMax, bool bVis = true); + long endMin, long endMax, bool bVis); bool operator==(const SvxColumnDescription &rCmp) const; bool operator!=(const SvxColumnDescription &rCmp) const; @@ -183,7 +183,7 @@ public: // right edge of the surrounding frame // nLeft, nRight each the distance to the surrounding frame SvxColumnItem(sal_uInt16 nAct = 0); - SvxColumnItem(sal_uInt16 nActCol, sal_uInt16 nLeft, sal_uInt16 nRight = 0); // Table with borders + SvxColumnItem(sal_uInt16 nActCol, sal_uInt16 nLeft, sal_uInt16 nRight); // Table with borders SvxColumnItem(const SvxColumnItem& aItem); virtual ~SvxColumnItem() override; diff --git a/include/svx/sdangitm.hxx b/include/svx/sdangitm.hxx index 869e25478d0f..977b1308b874 100644 --- a/include/svx/sdangitm.hxx +++ b/include/svx/sdangitm.hxx @@ -27,7 +27,7 @@ class SVX_DLLPUBLIC SdrAngleItem: public SfxInt32Item { public: - SdrAngleItem(sal_uInt16 nId, sal_Int32 nAngle=0): SfxInt32Item(nId,nAngle) {} + SdrAngleItem(sal_uInt16 nId, sal_Int32 nAngle): SfxInt32Item(nId,nAngle) {} SdrAngleItem(sal_uInt16 nId, SvStream& rIn): SfxInt32Item(nId,rIn) {} virtual SfxPoolItem* Clone(SfxItemPool* pPool=nullptr) const override; virtual SfxPoolItem* Create(SvStream& rIn, sal_uInt16 nVer) const override; diff --git a/include/svx/sdooitm.hxx b/include/svx/sdooitm.hxx index 8d846b47bb08..ecc1d67bf825 100644 --- a/include/svx/sdooitm.hxx +++ b/include/svx/sdooitm.hxx @@ -29,7 +29,7 @@ class SVX_DLLPUBLIC SdrOnOffItem: public SfxBoolItem { public: - SdrOnOffItem(sal_uInt16 nId, bool bOn=false): SfxBoolItem(nId,bOn) {} + SdrOnOffItem(sal_uInt16 nId, bool bOn): SfxBoolItem(nId,bOn) {} SdrOnOffItem(sal_uInt16 nId, SvStream& rIn): SfxBoolItem(nId,rIn) {} virtual SfxPoolItem* Clone(SfxItemPool* pPool=nullptr) const override; virtual SfxPoolItem* Create(SvStream& rIn, sal_uInt16 nVer) const override; diff --git a/include/svx/sdprcitm.hxx b/include/svx/sdprcitm.hxx index a21be90fa743..d4292bc5715d 100644 --- a/include/svx/sdprcitm.hxx +++ b/include/svx/sdprcitm.hxx @@ -30,7 +30,7 @@ class SVX_DLLPUBLIC SdrPercentItem : public SfxUInt16Item { public: - SdrPercentItem(sal_uInt16 nId, sal_uInt16 nVal=0): SfxUInt16Item(nId,nVal) {} + SdrPercentItem(sal_uInt16 nId, sal_uInt16 nVal): SfxUInt16Item(nId,nVal) {} SdrPercentItem(sal_uInt16 nId, SvStream& rIn): SfxUInt16Item(nId,rIn) {} virtual SfxPoolItem* Clone(SfxItemPool* pPool=nullptr) const override; virtual SfxPoolItem* Create(SvStream& rIn, sal_uInt16 nVer) const override; @@ -46,7 +46,7 @@ public: class SVX_DLLPUBLIC SdrSignedPercentItem : public SfxInt16Item { public: - SdrSignedPercentItem( sal_uInt16 nId, sal_Int16 nVal = 0 ) : SfxInt16Item( nId,nVal ) {} + SdrSignedPercentItem( sal_uInt16 nId, sal_Int16 nVal ) : SfxInt16Item( nId,nVal ) {} SdrSignedPercentItem( sal_uInt16 nId, SvStream& rIn ) : SfxInt16Item( nId,rIn ) {} virtual SfxPoolItem* Clone( SfxItemPool* pPool = nullptr ) const override; virtual SfxPoolItem* Create( SvStream& rIn, sal_uInt16 nVer ) const override; diff --git a/include/svx/sdr/overlay/overlayanimatedbitmapex.hxx b/include/svx/sdr/overlay/overlayanimatedbitmapex.hxx index c7c1f182aa2c..85a1c012289f 100644 --- a/include/svx/sdr/overlay/overlayanimatedbitmapex.hxx +++ b/include/svx/sdr/overlay/overlayanimatedbitmapex.hxx @@ -59,7 +59,7 @@ namespace sdr const basegfx::B2DPoint& rBasePos, const BitmapEx& rBitmapEx1, const BitmapEx& rBitmapEx2, - sal_uInt64 nBlinkTime = 500, + sal_uInt64 nBlinkTime, sal_uInt16 nCenX1 = 0, sal_uInt16 nCenY1 = 0, sal_uInt16 nCenX2 = 0, diff --git a/include/svx/sdr/table/tablecontroller.hxx b/include/svx/sdr/table/tablecontroller.hxx index b69cbd801bd5..ea511e73196e 100644 --- a/include/svx/sdr/table/tablecontroller.hxx +++ b/include/svx/sdr/table/tablecontroller.hxx @@ -144,7 +144,7 @@ private: SVX_DLLPRIVATE void MergeRange( sal_Int32 nFirstCol, sal_Int32 nFirstRow, sal_Int32 nLastCol, sal_Int32 nLastRow ); - SVX_DLLPRIVATE void EditCell(const CellPos& rPos, vcl::Window* pWindow, TblAction nAction = TblAction::NONE); + SVX_DLLPRIVATE void EditCell(const CellPos& rPos, vcl::Window* pWindow, TblAction nAction); SVX_DLLPRIVATE void StopTextEdit(); SVX_DLLPRIVATE TblAction getKeyboardAction(const KeyEvent& rKEvt, vcl::Window* pWindow); diff --git a/include/svx/sdynitm.hxx b/include/svx/sdynitm.hxx index e7ea20f7d23b..4af52a326560 100644 --- a/include/svx/sdynitm.hxx +++ b/include/svx/sdynitm.hxx @@ -29,7 +29,7 @@ //-------------------------------------------------- ---------- class SVX_DLLPUBLIC SdrYesNoItem: public SfxBoolItem { public: - SdrYesNoItem(sal_uInt16 nId, bool bOn=false): SfxBoolItem(nId,bOn) {} + SdrYesNoItem(sal_uInt16 nId, bool bOn): SfxBoolItem(nId,bOn) {} SdrYesNoItem(sal_uInt16 nId, SvStream& rIn): SfxBoolItem(nId,rIn) {} virtual SfxPoolItem* Clone(SfxItemPool* pPool=nullptr) const override; virtual SfxPoolItem* Create(SvStream& rIn, sal_uInt16 nVer) const override; diff --git a/include/svx/sidebar/SidebarDialControl.hxx b/include/svx/sidebar/SidebarDialControl.hxx index 1dea181b942a..0b2d8bce1b7d 100644 --- a/include/svx/sidebar/SidebarDialControl.hxx +++ b/include/svx/sidebar/SidebarDialControl.hxx @@ -28,7 +28,7 @@ namespace svx { namespace sidebar { class SVX_DLLPUBLIC SidebarDialControl : public svx::DialControl { public: - SidebarDialControl (vcl::Window* pParent, WinBits nBits = 0); + SidebarDialControl (vcl::Window* pParent, WinBits nBits); virtual Size GetOptimalSize() const override; virtual void MouseButtonDown (const MouseEvent& rMEvt) override; diff --git a/include/svx/svdcrtv.hxx b/include/svx/svdcrtv.hxx index b860df6c9237..a294bb544f7d 100644 --- a/include/svx/svdcrtv.hxx +++ b/include/svx/svdcrtv.hxx @@ -69,7 +69,7 @@ protected: protected: // #i71538# make constructors of SdrView sub-components protected to avoid incomplete incarnations which may get casted to SdrView - SdrCreateView(SdrModel* pModel1, OutputDevice* pOut = nullptr); + SdrCreateView(SdrModel* pModel1, OutputDevice* pOut); virtual ~SdrCreateView() override; public: diff --git a/include/svx/svddrgv.hxx b/include/svx/svddrgv.hxx index 2bdda05b4b74..f9a1b7db375a 100644 --- a/include/svx/svddrgv.hxx +++ b/include/svx/svddrgv.hxx @@ -68,7 +68,7 @@ protected: protected: // #i71538# make constructors of SdrView sub-components protected to avoid incomplete incarnations which may get casted to SdrView - SdrDragView(SdrModel* pModel1, OutputDevice* pOut = nullptr); + SdrDragView(SdrModel* pModel1, OutputDevice* pOut); virtual ~SdrDragView() override; public: @@ -94,7 +94,7 @@ public: // If pForcedMeth is passed, then pHdl, ... is not evaluated, but this Drag // method is used. In this, the ownership of the instance passes // to the View and is destroyed at the end of the dragging. - virtual bool BegDragObj(const Point& rPnt, OutputDevice* pOut, SdrHdl* pHdl=nullptr, short nMinMov=-3, SdrDragMethod* pForcedMeth=nullptr); + virtual bool BegDragObj(const Point& rPnt, OutputDevice* pOut, SdrHdl* pHdl, short nMinMov=-3, SdrDragMethod* pForcedMeth=nullptr); void MovDragObj(const Point& rPnt); bool EndDragObj(bool bCopy=false); void BrkDragObj(); diff --git a/include/svx/svdedtv.hxx b/include/svx/svdedtv.hxx index 342ec3072bfc..d349eb7142f4 100644 --- a/include/svx/svdedtv.hxx +++ b/include/svx/svdedtv.hxx @@ -168,7 +168,7 @@ protected: protected: // #i71538# make constructors of SdrView sub-components protected to avoid incomplete incarnations which may get casted to SdrView - SdrEditView(SdrModel* pModel1, OutputDevice* pOut = nullptr); + SdrEditView(SdrModel* pModel1, OutputDevice* pOut); virtual ~SdrEditView() override; public: @@ -217,7 +217,7 @@ public: void MirrorMarkedObjVertical(); long GetMarkedObjShear() const; void ShearMarkedObj(const Point& rRef, long nAngle, bool bVShear=false, bool bCopy=false); - void CrookMarkedObj(const Point& rRef, const Point& rRad, SdrCrookMode eMode, bool bVertical, bool bNoContortion=false, bool bCopy=false); + void CrookMarkedObj(const Point& rRef, const Point& rRad, SdrCrookMode eMode, bool bVertical, bool bNoContortion, bool bCopy=false); void DistortMarkedObj(const Rectangle& rRef, const XPolygon& rDistortedRect, bool bNoContortion, bool bCopy=false); // copy marked objects and mark them instead of the old ones diff --git a/include/svx/svdedxv.hxx b/include/svx/svdedxv.hxx index 64abea3efdf3..3ad19c843699 100644 --- a/include/svx/svdedxv.hxx +++ b/include/svx/svdedxv.hxx @@ -140,7 +140,7 @@ protected: protected: // #i71538# make constructors of SdrView sub-components protected to avoid incomplete incarnations which may get casted to SdrView - SdrObjEditView(SdrModel* pModel1, OutputDevice* pOut = nullptr); + SdrObjEditView(SdrModel* pModel1, OutputDevice* pOut); virtual ~SdrObjEditView() override; public: diff --git a/include/svx/svdglev.hxx b/include/svx/svdglev.hxx index b920d248ab0f..50beed43bd45 100644 --- a/include/svx/svdglev.hxx +++ b/include/svx/svdglev.hxx @@ -40,7 +40,7 @@ class SVX_DLLPUBLIC SdrGlueEditView: public SdrPolyEditView protected: // #i71538# make constructors of SdrView sub-components protected to avoid incomplete incarnations which may get casted to SdrView - SdrGlueEditView(SdrModel* pModel1, OutputDevice* pOut = nullptr); + SdrGlueEditView(SdrModel* pModel1, OutputDevice* pOut); virtual ~SdrGlueEditView() override; public: @@ -72,7 +72,7 @@ public: // delete all marked GluePoints void DeleteMarkedGluePoints(); - void MoveMarkedGluePoints (const Size& rSiz, bool bCopy=false); + void MoveMarkedGluePoints (const Size& rSiz, bool bCopy); void ResizeMarkedGluePoints(const Point& rRef, const Fraction& xFact, const Fraction& yFact, bool bCopy); void RotateMarkedGluePoints(const Point& rRef, long nAngle, bool bCopy); }; diff --git a/include/svx/svdhdl.hxx b/include/svx/svdhdl.hxx index c1bf98956e3a..f5c6d34d5a8e 100644 --- a/include/svx/svdhdl.hxx +++ b/include/svx/svdhdl.hxx @@ -176,7 +176,7 @@ protected: public: SdrHdl(); - explicit SdrHdl(const Point& rPnt, SdrHdlKind eNewKind=SdrHdlKind::Move); + explicit SdrHdl(const Point& rPnt, SdrHdlKind eNewKind); virtual ~SdrHdl(); const sdr::overlay::OverlayObjectList& getOverlayObjectList() const { return maOverlayGroup; } @@ -262,7 +262,7 @@ class SVX_DLLPUBLIC SdrHdlColor : public SdrHdl SVX_DLLPRIVATE static Color GetLuminance(const Color& rCol); public: - explicit SdrHdlColor(const Point& rRef, Color aCol = Color(COL_BLACK), const Size& rSize = Size(11, 11), bool bLum = false); + explicit SdrHdlColor(const Point& rRef, Color aCol, const Size& rSize = Size(11, 11), bool bLum = false); virtual ~SdrHdlColor() override; bool IsUseLuminance() const { return bUseLuminance; } @@ -297,7 +297,7 @@ private: virtual void CreateB2dIAObject() override; public: - SdrHdlGradient(const Point& rRef1, const Point& rRef2, bool bGrad = true); + SdrHdlGradient(const Point& rRef1, const Point& rRef2, bool bGrad); virtual ~SdrHdlGradient() override; bool IsGradient() const { return bGradient; } @@ -335,7 +335,7 @@ protected: SdrHdl* pHdl2; public: - SdrHdlLine(SdrHdl& rHdl1, SdrHdl& rHdl2, SdrHdlKind eNewKind=SdrHdlKind::MirrorAxis) { eKind=eNewKind; pHdl1=&rHdl1; pHdl2=&rHdl2; } + SdrHdlLine(SdrHdl& rHdl1, SdrHdl& rHdl2, SdrHdlKind eNewKind) { eKind=eNewKind; pHdl1=&rHdl1; pHdl2=&rHdl2; } virtual ~SdrHdlLine() override; virtual Pointer GetPointer() const override; diff --git a/include/svx/svdmodel.hxx b/include/svx/svdmodel.hxx index 4518a83d1a85..79337a826a60 100644 --- a/include/svx/svdmodel.hxx +++ b/include/svx/svdmodel.hxx @@ -438,15 +438,15 @@ public: // bTreadSourceAsConst.......: sal_True=the SourceModel will not be changed, // so pages will be copied. virtual void Merge(SdrModel& rSourceModel, - sal_uInt16 nFirstPageNum, sal_uInt16 nLastPageNum=0xFFFF, - sal_uInt16 nDestPos=0xFFFF, + sal_uInt16 nFirstPageNum, sal_uInt16 nLastPageNum, + sal_uInt16 nDestPos, bool bMergeMasterPages = false, bool bAllMasterPages = false, bool bUndo = true, bool bTreadSourceAsConst = false); // Behaves like Merge(SourceModel=DestModel,nFirst,nLast,nDest,sal_False,sal_False,bUndo,!bMoveNoCopy); void CopyPages(sal_uInt16 nFirstPageNum, sal_uInt16 nLastPageNum, sal_uInt16 nDestPos, - bool bUndo, bool bMoveNoCopy = false); + bool bUndo, bool bMoveNoCopy); // BegUndo() / EndUndo() enables you to group arbitrarily many UndoActions // arbitrarily deeply. As comment for the UndoAction the first BegUndo(String) of all diff --git a/include/svx/svdmrkv.hxx b/include/svx/svdmrkv.hxx index 49795e6fd187..4ceb3116ef1f 100644 --- a/include/svx/svdmrkv.hxx +++ b/include/svx/svdmrkv.hxx @@ -169,7 +169,7 @@ protected: protected: // #i71538# make constructors of SdrView sub-components protected to avoid incomplete incarnations which may get casted to SdrView - SdrMarkView(SdrModel* pModel1, OutputDevice* pOut = nullptr); + SdrMarkView(SdrModel* pModel1, OutputDevice* pOut); virtual ~SdrMarkView() override; public: @@ -287,7 +287,7 @@ public: // object (O2). In case of success the marking of O1 is deleted, a marking // is created at O2 and sal_True is returned. With the parameter // bPrev=sal_True the scan direction is turned to the other direction. - bool MarkNextObj(const Point& rPnt, short nTol, bool bPrev=false); + bool MarkNextObj(const Point& rPnt, short nTol, bool bPrev); // Mark all objects within a rectangular area // Just objects are marked which are inclosed completely diff --git a/include/svx/svdoashp.hxx b/include/svx/svdoashp.hxx index d2841c4d53de..57314da374f0 100644 --- a/include/svx/svdoashp.hxx +++ b/include/svx/svdoashp.hxx @@ -229,7 +229,7 @@ public: virtual void EndTextEdit( SdrOutliner& rOutl ) override; virtual void TakeTextAnchorRect( Rectangle& rAnchorRect ) const override; virtual void TakeTextRect( SdrOutliner& rOutliner, Rectangle& rTextRect, bool bNoEditText, - Rectangle* pAnchorRect=nullptr, bool bLineWidth = true ) const override; + Rectangle* pAnchorRect, bool bLineWidth = true ) const override; virtual SdrObjCustomShape* Clone() const override; SdrObjCustomShape& operator=(const SdrObjCustomShape& rObj); diff --git a/include/svx/svdomeas.hxx b/include/svx/svdomeas.hxx index f6c4169fd80c..6873ecde4396 100644 --- a/include/svx/svdomeas.hxx +++ b/include/svx/svdomeas.hxx @@ -136,7 +136,7 @@ public: virtual bool BegTextEdit(SdrOutliner& rOutl) override; virtual const Size& GetTextSize() const override; virtual void TakeTextRect( SdrOutliner& rOutliner, Rectangle& rTextRect, bool bNoEditText, - Rectangle* pAnchorRect=nullptr, bool bLineWidth = true ) const override; + Rectangle* pAnchorRect, bool bLineWidth = true ) const override; virtual void TakeTextAnchorRect(Rectangle& rAnchorRect) const override; virtual void TakeTextEditArea(Size* pPaperMin, Size* pPaperMax, Rectangle* pViewInit, Rectangle* pViewMin) const override; virtual sal_uInt16 GetOutlinerViewAnchorMode() const override; diff --git a/include/svx/svdotable.hxx b/include/svx/svdotable.hxx index 0931c296e377..c7fb16cabefe 100644 --- a/include/svx/svdotable.hxx +++ b/include/svx/svdotable.hxx @@ -175,7 +175,7 @@ public: * as well as the PaperSize */ void TakeTextRect( const sdr::table::CellPos& rPos, SdrOutliner& rOutliner, ::Rectangle& rTextRect, bool bNoEditText, ::Rectangle* pAnchorRect=nullptr, bool bLineWidth = true ) const; - virtual void TakeTextRect( SdrOutliner& rOutliner, Rectangle& rTextRect, bool bNoEditText, Rectangle* pAnchorRect=nullptr, bool bLineWidth = true ) const override; + virtual void TakeTextRect( SdrOutliner& rOutliner, Rectangle& rTextRect, bool bNoEditText, Rectangle* pAnchorRect, bool bLineWidth = true ) const override; void TakeTextAnchorRect(const sdr::table::CellPos& rPos, ::Rectangle& rAnchorRect ) const; virtual void TakeTextAnchorRect(::Rectangle& rAnchorRect) const override; diff --git a/include/svx/svdotext.hxx b/include/svx/svdotext.hxx index ee5a3938a570..132a77800c14 100644 --- a/include/svx/svdotext.hxx +++ b/include/svx/svdotext.hxx @@ -394,7 +394,7 @@ public: // Simultaneously sets the text into the Outliner (possibly // the one of the EditOutliner) and sets the PaperSize. virtual void TakeTextRect( SdrOutliner& rOutliner, Rectangle& rTextRect, bool bNoEditText, - Rectangle* pAnchorRect=nullptr, bool bLineWidth = true ) const; + Rectangle* pAnchorRect, bool bLineWidth = true ) const; virtual void TakeTextAnchorRect(::Rectangle& rAnchorRect) const; const GeoStat& GetGeoStat() const { return aGeo; } diff --git a/include/svx/svdpntv.hxx b/include/svx/svdpntv.hxx index 659bf57d1e52..6188c7b1e474 100644 --- a/include/svx/svdpntv.hxx +++ b/include/svx/svdpntv.hxx @@ -247,7 +247,7 @@ protected: virtual void ModelHasChanged(); // #i71538# make constructors of SdrView sub-components protected to avoid incomplete incarnations which may get casted to SdrView - SdrPaintView(SdrModel* pModel1, OutputDevice* pOut = nullptr); + SdrPaintView(SdrModel* pModel1, OutputDevice* pOut); virtual ~SdrPaintView() override; public: diff --git a/include/svx/svdpoev.hxx b/include/svx/svdpoev.hxx index b76d740b311e..c7a33bac1683 100644 --- a/include/svx/svdpoev.hxx +++ b/include/svx/svdpoev.hxx @@ -45,7 +45,7 @@ private: protected: // #i71538# make constructors of SdrView sub-components protected to avoid incomplete incarnations which may get casted to SdrView - SdrPolyEditView(SdrModel* pModel1, OutputDevice* pOut = nullptr); + SdrPolyEditView(SdrModel* pModel1, OutputDevice* pOut); virtual ~SdrPolyEditView() override; public: diff --git a/include/svx/svdsnpv.hxx b/include/svx/svdsnpv.hxx index 47e001ab1c56..57a73610d8f7 100644 --- a/include/svx/svdsnpv.hxx +++ b/include/svx/svdsnpv.hxx @@ -127,7 +127,7 @@ protected: protected: // #i71538# make constructors of SdrView sub-components protected to avoid incomplete incarnations which may get casted to SdrView - SdrSnapView(SdrModel* pModel1, OutputDevice* pOut = nullptr); + SdrSnapView(SdrModel* pModel1, OutputDevice* pOut); virtual ~SdrSnapView() override; public: diff --git a/include/svx/svdundo.hxx b/include/svx/svdundo.hxx index 4773a39fb2c3..1949e5d6a767 100644 --- a/include/svx/svdundo.hxx +++ b/include/svx/svdundo.hxx @@ -248,7 +248,7 @@ protected: sal_uInt32 nOrdNum; protected: - SdrUndoObjList(SdrObject& rNewObj, bool bOrdNumDirect = false); + SdrUndoObjList(SdrObject& rNewObj, bool bOrdNumDirect); virtual ~SdrUndoObjList() override; bool IsOwner() { return bOwner; } @@ -345,7 +345,7 @@ protected: SdrObject* pNewObj; public: - SdrUndoReplaceObj(SdrObject& rOldObj1, SdrObject& rNewObj1, bool bOrdNumDirect = false); + SdrUndoReplaceObj(SdrObject& rOldObj1, SdrObject& rNewObj1, bool bOrdNumDirect); virtual ~SdrUndoReplaceObj() override; virtual void Undo() override; @@ -366,7 +366,7 @@ public: class SdrUndoCopyObj : public SdrUndoNewObj { public: - SdrUndoCopyObj(SdrObject& rNewObj, bool bOrdNumDirect = false) + SdrUndoCopyObj(SdrObject& rNewObj, bool bOrdNumDirect) : SdrUndoNewObj(rNewObj,bOrdNumDirect) {} virtual OUString GetComment() const override; diff --git a/include/svx/svdview.hxx b/include/svx/svdview.hxx index 11d69b1e484f..4c2152832487 100644 --- a/include/svx/svdview.hxx +++ b/include/svx/svdview.hxx @@ -237,7 +237,7 @@ public: // bAddMark=TRUE: add to existing selection (->Shift) // bUnmark=TRUE: remove objects from selection which are inside of // the enveloped frame. - bool BegMark(const Point& rPnt, bool bAddMark, bool bUnmark=false); + bool BegMark(const Point& rPnt, bool bAddMark, bool bUnmark); // The following actions are possible: // - ObjectCreating diff --git a/include/svx/svdxcgv.hxx b/include/svx/svdxcgv.hxx index f506a91f25f2..5c77147fea1c 100644 --- a/include/svx/svdxcgv.hxx +++ b/include/svx/svdxcgv.hxx @@ -40,7 +40,7 @@ protected: protected: // #i71538# make constructors of SdrView sub-components protected to avoid incomplete incarnations which may get casted to SdrView - SdrExchangeView(SdrModel* pModel1, OutputDevice* pOut = nullptr); + SdrExchangeView(SdrModel* pModel1, OutputDevice* pOut); public: // Output all marked objects on the specified OutputDevice @@ -109,8 +109,8 @@ public: virtual bool Paste( const SdrModel& rMod, const Point& rPos, SdrObjList* pLst, SdrInsertFlags nOptions); - bool Paste(const OUString& rStr, const Point& rPos, SdrObjList* pLst, SdrInsertFlags nOptions=SdrInsertFlags::NONE); - bool Paste(SvStream& rInput, const OUString& rBaseURL, sal_uInt16 eFormat, const Point& rPos, SdrObjList* pLst, SdrInsertFlags nOptions=SdrInsertFlags::NONE); + bool Paste(const OUString& rStr, const Point& rPos, SdrObjList* pLst, SdrInsertFlags nOptions); + bool Paste(SvStream& rInput, const OUString& rBaseURL, sal_uInt16 eFormat, const Point& rPos, SdrObjList* pLst, SdrInsertFlags nOptions); }; #endif // INCLUDED_SVX_SVDXCGV_HXX diff --git a/include/svx/svxdlg.hxx b/include/svx/svxdlg.hxx index ebeedc317ae4..b9e6eb4257f6 100644 --- a/include/svx/svxdlg.hxx +++ b/include/svx/svxdlg.hxx @@ -436,7 +436,7 @@ public: virtual VclPtr<SfxAbstractTabDialog> CreateSvxLineTabDialog( vcl::Window* pParent, const SfxItemSet* pAttr, //add forSvxLineTabDialog SdrModel* pModel, const SdrObject* pObj, - bool bHasObj = true )=0; + bool bHasObj )=0; virtual VclPtr<SfxAbstractDialog> CreateSfxDialog( vcl::Window* pParent, const SfxItemSet& rAttr, const SdrView* pView, diff --git a/include/svx/sxenditm.hxx b/include/svx/sxenditm.hxx index 53805d1a4965..d5af6ddbacf4 100644 --- a/include/svx/sxenditm.hxx +++ b/include/svx/sxenditm.hxx @@ -25,7 +25,7 @@ class SVX_DLLPUBLIC SdrEdgeNode1HorzDistItem: public SdrMetricItem { public: - SdrEdgeNode1HorzDistItem(long nVal=0): SdrMetricItem(SDRATTR_EDGENODE1HORZDIST,nVal) {} + SdrEdgeNode1HorzDistItem(long nVal): SdrMetricItem(SDRATTR_EDGENODE1HORZDIST,nVal) {} virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override; virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override; virtual SfxPoolItem* Clone(SfxItemPool* pPool=nullptr) const override; @@ -33,7 +33,7 @@ public: class SVX_DLLPUBLIC SdrEdgeNode1VertDistItem: public SdrMetricItem { public: - SdrEdgeNode1VertDistItem(long nVal=0): SdrMetricItem(SDRATTR_EDGENODE1VERTDIST,nVal) {} + SdrEdgeNode1VertDistItem(long nVal): SdrMetricItem(SDRATTR_EDGENODE1VERTDIST,nVal) {} virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override; virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override; virtual SfxPoolItem* Clone(SfxItemPool* pPool=nullptr) const override; @@ -41,7 +41,7 @@ public: class SVX_DLLPUBLIC SdrEdgeNode2HorzDistItem: public SdrMetricItem { public: - SdrEdgeNode2HorzDistItem(long nVal=0): SdrMetricItem(SDRATTR_EDGENODE2HORZDIST,nVal) {} + SdrEdgeNode2HorzDistItem(long nVal): SdrMetricItem(SDRATTR_EDGENODE2HORZDIST,nVal) {} virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override; virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override; virtual SfxPoolItem* Clone(SfxItemPool* pPool=nullptr) const override; @@ -49,7 +49,7 @@ public: class SVX_DLLPUBLIC SdrEdgeNode2VertDistItem: public SdrMetricItem { public: - SdrEdgeNode2VertDistItem(long nVal=0): SdrMetricItem(SDRATTR_EDGENODE2VERTDIST,nVal) {} + SdrEdgeNode2VertDistItem(long nVal): SdrMetricItem(SDRATTR_EDGENODE2VERTDIST,nVal) {} virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override; virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override; virtual SfxPoolItem* Clone(SfxItemPool* pPool=nullptr) const override; diff --git a/include/svx/unoshape.hxx b/include/svx/unoshape.hxx index c900e469ac6a..4d23f15d0389 100644 --- a/include/svx/unoshape.hxx +++ b/include/svx/unoshape.hxx @@ -587,7 +587,7 @@ protected: virtual bool getPropertyValueImpl( const OUString& rName, const SfxItemPropertySimpleEntry* pProperty, css::uno::Any& rValue ) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException) override; public: - SvxShapePolyPolygon( SdrObject* pObj , css::drawing::PolygonKind eNew = css::drawing::PolygonKind_LINE ) throw(css::lang::IllegalArgumentException, css::beans::PropertyVetoException); + SvxShapePolyPolygon( SdrObject* pObj , css::drawing::PolygonKind eNew ) throw(css::lang::IllegalArgumentException, css::beans::PropertyVetoException); virtual ~SvxShapePolyPolygon() throw() override; // Local support functions @@ -613,7 +613,7 @@ public: virtual bool setPropertyValueImpl( const OUString& rName, const SfxItemPropertySimpleEntry* pProperty, const css::uno::Any& rValue ) throw(css::beans::UnknownPropertyException, css::beans::PropertyVetoException, css::lang::IllegalArgumentException, css::lang::WrappedTargetException, css::uno::RuntimeException) override; virtual bool getPropertyValueImpl( const OUString& rName, const SfxItemPropertySimpleEntry* pProperty, css::uno::Any& rValue ) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException) override; - SvxShapePolyPolygonBezier( SdrObject* pObj , css::drawing::PolygonKind eNew = css::drawing::PolygonKind_PATHLINE) throw(); + SvxShapePolyPolygonBezier( SdrObject* pObj, css::drawing::PolygonKind eNew ) throw(); virtual ~SvxShapePolyPolygonBezier() throw() override; // Local support functions diff --git a/include/svx/view3d.hxx b/include/svx/view3d.hxx index 20b951d3ebf4..d392cd08d832 100644 --- a/include/svx/view3d.hxx +++ b/include/svx/view3d.hxx @@ -75,7 +75,7 @@ protected: void BreakSingle3DObj(E3dObject* pObj); public: - E3dView(SdrModel* pModel, OutputDevice* pOut = nullptr); + E3dView(SdrModel* pModel, OutputDevice* pOut); virtual ~E3dView() override; // Output all marked Objects on the given OutputDevice. @@ -83,7 +83,7 @@ public: // Access to the default attributes. E3dDefaultAttributes& Get3DDefaultAttributes() { return a3DDefaultAttr; } - virtual bool BegDragObj(const Point& rPnt, OutputDevice* pOut, SdrHdl* pHdl = nullptr, short nMinMov = -3, SdrDragMethod* pForcedMeth = nullptr) override; + virtual bool BegDragObj(const Point& rPnt, OutputDevice* pOut, SdrHdl* pHdl, short nMinMov = -3, SdrDragMethod* pForcedMeth = nullptr) override; virtual void CheckPossibilities() override; // Get/Set Event diff --git a/include/svx/xbtmpit.hxx b/include/svx/xbtmpit.hxx index 646206d34db0..4bde75f84161 100644 --- a/include/svx/xbtmpit.hxx +++ b/include/svx/xbtmpit.hxx @@ -47,7 +47,7 @@ public: XFillBitmapItem(const OUString& rName, const GraphicObject& rGraphicObject); XFillBitmapItem(SfxItemPool* pPool, const GraphicObject& rGraphicObject); XFillBitmapItem( const XFillBitmapItem& rItem ); - XFillBitmapItem( SvStream& rIn, sal_uInt16 nVer = 0 ); + XFillBitmapItem( SvStream& rIn, sal_uInt16 nVer ); virtual bool operator==( const SfxPoolItem& rItem ) const override; virtual SfxPoolItem* Clone( SfxItemPool* pPool = nullptr ) const override; diff --git a/include/svx/xflgrit.hxx b/include/svx/xflgrit.hxx index eae119460170..6f3d336f9d1a 100644 --- a/include/svx/xflgrit.hxx +++ b/include/svx/xflgrit.hxx @@ -40,7 +40,7 @@ public: XFillGradientItem(const OUString& rName, const XGradient& rTheGradient, sal_uInt16 nWhich = XATTR_FILLGRADIENT); XFillGradientItem(const XGradient& rTheGradient); XFillGradientItem(const XFillGradientItem& rItem); - XFillGradientItem(SvStream& rIn, sal_uInt16 nVer = 0); + XFillGradientItem(SvStream& rIn, sal_uInt16 nVer); virtual bool operator==(const SfxPoolItem& rItem) const override; virtual SfxPoolItem* Clone(SfxItemPool* pPool = nullptr) const override; diff --git a/include/svx/xit.hxx b/include/svx/xit.hxx index 7d087758f577..fa8d4bdf30bd 100644 --- a/include/svx/xit.hxx +++ b/include/svx/xit.hxx @@ -45,8 +45,7 @@ protected: public: NameOrIndex() { nPalIndex = -1; } NameOrIndex(sal_uInt16 nWhich, sal_Int32 nIndex); - NameOrIndex(sal_uInt16 nWhich, - const OUString& rName = OUString()); + NameOrIndex(sal_uInt16 nWhich, const OUString& rName); NameOrIndex(sal_uInt16 nWhich, SvStream& rIn); NameOrIndex(const NameOrIndex& rNameOrIndex); virtual ~NameOrIndex() override {}; diff --git a/include/svx/xoutbmp.hxx b/include/svx/xoutbmp.hxx index 032716fb553b..4163be681d92 100644 --- a/include/svx/xoutbmp.hxx +++ b/include/svx/xoutbmp.hxx @@ -71,7 +71,7 @@ public: static tools::Polygon GetCountour( const Bitmap& rBmp, const XOutFlags nContourFlags, const sal_uInt8 cEdgeDetectThreshold, - const Rectangle* pWorkRect = nullptr ); + const Rectangle* pWorkRect ); }; SVX_DLLPUBLIC bool DitherBitmap( Bitmap& rBitmap ); diff --git a/include/svx/xpool.hxx b/include/svx/xpool.hxx index e2a27cf3f6d9..364b91db3e4c 100644 --- a/include/svx/xpool.hxx +++ b/include/svx/xpool.hxx @@ -37,9 +37,7 @@ protected: SfxItemInfo* mpLocalItemInfos; public: - XOutdevItemPool( - SfxItemPool* pMaster = nullptr, - bool bLoadRefCounts = true); + XOutdevItemPool( SfxItemPool* pMaster, bool bLoadRefCounts = true); XOutdevItemPool(const XOutdevItemPool& rPool); virtual SfxItemPool* Clone() const override; diff --git a/include/tools/errinf.hxx b/include/tools/errinf.hxx index ededffb5f77a..8d79815f5e1d 100644 --- a/include/tools/errinf.hxx +++ b/include/tools/errinf.hxx @@ -88,7 +88,7 @@ private: public: TwoStringErrorInfo(sal_uIntPtr nUserID, const OUString & rTheArg1, - const OUString & rTheArg2, sal_uInt16 nMask = 0): + const OUString & rTheArg2, sal_uInt16 nMask): DynamicErrorInfo(nUserID, nMask), aArg1(rTheArg1), aArg2(rTheArg2) {} virtual ~TwoStringErrorInfo() override {} @@ -106,7 +106,7 @@ private: std::unique_ptr<ErrorContextImpl> pImpl; public: - ErrorContext(vcl::Window *pWin=nullptr); + ErrorContext(vcl::Window *pWin); virtual ~ErrorContext(); virtual bool GetString( sal_uIntPtr nErrId, OUString& rCtxStr ) = 0; diff --git a/include/tools/poly.hxx b/include/tools/poly.hxx index 3258a841d83a..eb962cbafb94 100644 --- a/include/tools/poly.hxx +++ b/include/tools/poly.hxx @@ -98,7 +98,7 @@ public: bool bWholeCircle = false ); Polygon( const Point& rBezPt1, const Point& rCtrlPt1, const Point& rBezPt2, const Point& rCtrlPt2, - sal_uInt16 nPoints = 0 ); + sal_uInt16 nPoints ); Polygon( const tools::Polygon& rPoly ); ~Polygon(); diff --git a/include/tools/urlobj.hxx b/include/tools/urlobj.hxx index d5d489ef8e53..9fa5bee5c0e9 100644 --- a/include/tools/urlobj.hxx +++ b/include/tools/urlobj.hxx @@ -176,9 +176,7 @@ public: const; OUString - getAbbreviated(css::uno::Reference< - css::util::XStringWidth > const & - rStringWidth, + getAbbreviated(css::uno::Reference< css::util::XStringWidth > const & rStringWidth, sal_Int32 nWidth, DecodeMechanism eMechanism = DECODE_TO_IURI, rtl_TextEncoding eCharset = RTL_TEXTENCODING_UTF8) diff --git a/include/ucbhelper/fd_inputstream.hxx b/include/ucbhelper/fd_inputstream.hxx index 27d0b1a72774..b0b12e64afc9 100644 --- a/include/ucbhelper/fd_inputstream.hxx +++ b/include/ucbhelper/fd_inputstream.hxx @@ -48,8 +48,7 @@ namespace ucbhelper /** Defines the storage kind found * on which the inputstream acts. */ - - FdInputStream(oslFileHandle tmpfl = nullptr); + FdInputStream(oslFileHandle tmpfl); virtual ~FdInputStream() override; diff --git a/include/unotools/confignode.hxx b/include/unotools/confignode.hxx index 83f3ee51affe..45cd4fba2a1b 100644 --- a/include/unotools/confignode.hxx +++ b/include/unotools/confignode.hxx @@ -249,7 +249,7 @@ namespace utl const css::uno::Reference< css::lang::XMultiServiceFactory >& _rxConfProvider, const OUString& _rPath, sal_Int32 _nDepth, - CREATION_MODE _eMode = CM_UPDATABLE, + CREATION_MODE _eMode, bool _bLazyWrite = true ); diff --git a/include/unotools/configvaluecontainer.hxx b/include/unotools/configvaluecontainer.hxx index d5838711ba98..e2243c108891 100644 --- a/include/unotools/configvaluecontainer.hxx +++ b/include/unotools/configvaluecontainer.hxx @@ -81,7 +81,7 @@ namespace utl const css::uno::Reference< css::uno::XComponentContext >& _rxORB, ::osl::Mutex& _rAccessSafety, const sal_Char* _pConfigLocation, - const sal_Int32 _nLevels = -1 + const sal_Int32 _nLevels ); /// dtor diff --git a/include/unotools/textsearch.hxx b/include/unotools/textsearch.hxx index 570efcb769b2..0a6185e66580 100644 --- a/include/unotools/textsearch.hxx +++ b/include/unotools/textsearch.hxx @@ -114,7 +114,7 @@ private: public: SearchParam( const OUString &rText, - SearchType eSrchType = SearchParam::SRCH_NORMAL, + SearchType eSrchType, bool bCaseSensitive = true, sal_uInt32 cWildEscChar = '\\', bool bWildMatchSel = false ); diff --git a/sd/inc/drawdoc.hxx b/sd/inc/drawdoc.hxx index 1235655e88ac..8c491cd428d1 100644 --- a/sd/inc/drawdoc.hxx +++ b/sd/inc/drawdoc.hxx @@ -449,8 +449,8 @@ public: SAL_DLLPRIVATE void CheckMasterPages(); SAL_DLLPRIVATE void Merge(SdrModel& rSourceModel, - sal_uInt16 nFirstPageNum, sal_uInt16 nLastPageNum=0xFFFF, - sal_uInt16 nDestPos=0xFFFF, + sal_uInt16 nFirstPageNum, sal_uInt16 nLastPageNum, + sal_uInt16 nDestPos, bool bMergeMasterPages = false, bool bAllMasterPages = false, bool bUndo = true, bool bTreadSourceAsConst = false) override; |