[Libreoffice-commits] core.git: include/svx svx/inc

Noel Grandin noel at peralex.com
Fri Sep 2 07:32:42 UTC 2016


 include/svx/DescriptionGenerator.hxx             |    2 -
 include/svx/algitem.hxx                          |    2 -
 include/svx/camera3d.hxx                         |    4 +--
 include/svx/contdlg.hxx                          |    2 -
 include/svx/ctredlin.hxx                         |   28 +++++++++++------------
 include/svx/dlgctrl.hxx                          |    2 -
 include/svx/float3d.hxx                          |    2 -
 include/svx/fmtools.hxx                          |    4 +--
 include/svx/fntctrl.hxx                          |    2 -
 include/svx/framelink.hxx                        |   10 ++++----
 include/svx/framelinkarray.hxx                   |    4 +--
 include/svx/frmsel.hxx                           |    2 -
 include/svx/gallery.hxx                          |    8 +++---
 include/svx/galtheme.hxx                         |   10 ++++----
 include/svx/imapdlg.hxx                          |    4 +--
 include/svx/nbdtmg.hxx                           |   26 ++++++++++-----------
 include/svx/numfmtsh.hxx                         |    2 -
 include/svx/orienthelper.hxx                     |    4 +--
 include/svx/relfld.hxx                           |    2 -
 include/svx/ruler.hxx                            |    8 +++---
 include/svx/sdr/overlay/overlaymanager.hxx       |    6 ++--
 include/svx/sdr/properties/defaultproperties.hxx |    2 -
 include/svx/sdr/properties/properties.hxx        |    6 ++--
 include/svx/sdr/table/tablecontroller.hxx        |    2 -
 include/svx/svdcrtv.hxx                          |    2 -
 include/svx/svddrgv.hxx                          |    4 +--
 include/svx/view3d.hxx                           |    2 -
 svx/inc/sdr/properties/attributeproperties.hxx   |    2 -
 svx/inc/sdr/properties/customshapeproperties.hxx |    2 -
 svx/inc/sdr/properties/e3dsceneproperties.hxx    |    4 +--
 svx/inc/sdr/properties/emptyproperties.hxx       |    2 -
 svx/inc/sdr/properties/groupproperties.hxx       |    6 ++--
 32 files changed, 84 insertions(+), 84 deletions(-)

New commits:
commit 175c49baef5d8dd3f7a28fec5a3dce956303dc42
Author: Noel Grandin <noel at peralex.com>
Date:   Thu Sep 1 12:44:03 2016 +0200

    loplugin:countusersofdefaultparams
    
    Change-Id: I2ed581e58523ac8b52aa520f7a02f69f408665fe
    Reviewed-on: https://gerrit.libreoffice.org/28587
    Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
    Tested-by: Noel Grandin <noelgrandin at gmail.com>

diff --git a/include/svx/DescriptionGenerator.hxx b/include/svx/DescriptionGenerator.hxx
index 77e537a..b124985 100644
--- a/include/svx/DescriptionGenerator.hxx
+++ b/include/svx/DescriptionGenerator.hxx
@@ -178,7 +178,7 @@ private:
             Name of the property.
     */
     SVX_DLLPRIVATE void AddString (const OUString& sPropertyName,
-        const OUString& sLocalizedName, long nWhichId = -1);
+        const OUString& sLocalizedName, long nWhichId);
 
     /** Add a property value formatted as fill style to the description
         string.  If the fill style is <const>HATCH</const>,
diff --git a/include/svx/algitem.hxx b/include/svx/algitem.hxx
index 335040e..448d247 100644
--- a/include/svx/algitem.hxx
+++ b/include/svx/algitem.hxx
@@ -62,7 +62,7 @@ public:
     /** Returns sal_True, if the item represents STACKED state. */
     bool                    IsStacked() const;
     /** Returns the rotation this item represents (returns nStdAngle for STANDARD and STACKED state). */
-    sal_Int32               GetRotation( sal_Int32 nStdAngle = 0 ) const;
+    sal_Int32               GetRotation( sal_Int32 nStdAngle ) const;
     /** Fills this item according to passed item values. */
     void                    SetFromRotation( sal_Int32 nRotation, bool bStacked );
 };
diff --git a/include/svx/camera3d.hxx b/include/svx/camera3d.hxx
index 10fbbf6..2d8021a 100644
--- a/include/svx/camera3d.hxx
+++ b/include/svx/camera3d.hxx
@@ -50,7 +50,7 @@ class SAL_WARN_UNUSED SVX_DLLPUBLIC Camera3D : public Viewport3D
     Camera3D();
 
     void SetDefaults(const basegfx::B3DPoint& rPos, const basegfx::B3DPoint& rLookAt,
-                     double fFocalLen = 35.0, double fBankAng = 0);
+                     double fFocalLen, double fBankAng = 0);
 
     void SetViewWindow(double fX, double fY, double fW, double fH);
 
@@ -66,7 +66,7 @@ class SAL_WARN_UNUSED SVX_DLLPUBLIC Camera3D : public Viewport3D
     // Bank angle links/rechts
     void    SetBankAngle(double fAngle);
 
-    void SetAutoAdjustProjection(bool bAdjust = true)
+    void SetAutoAdjustProjection(bool bAdjust)
         { bAutoAdjustProjection = bAdjust; }
 };
 
diff --git a/include/svx/contdlg.hxx b/include/svx/contdlg.hxx
index 5e596ff..7e13ba4 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 = nullptr, void* pEditingObj = nullptr );
+                                const tools::PolyPolygon* pPolyPoly, void* pEditingObj = nullptr );
 
     static tools::PolyPolygon  CreateAutoContour(  const Graphic& rGraphic,
                                             const Rectangle* pRect = nullptr,
diff --git a/include/svx/ctredlin.hxx b/include/svx/ctredlin.hxx
index 01fe64a..807c4f3 100644
--- a/include/svx/ctredlin.hxx
+++ b/include/svx/ctredlin.hxx
@@ -117,15 +117,15 @@ public:
     virtual void    dispose() override;
 
     // For FilterPage only {
-    void            SetFilterDate(bool bFlag=true);
+    void            SetFilterDate(bool bFlag);
     void            SetDateTimeMode(SvxRedlinDateMode nMode);
     void            SetFirstDate(const Date&);
     void            SetLastDate(const Date&);
     void            SetFirstTime(const tools::Time&);
     void            SetLastTime(const tools::Time&);
-    void            SetFilterAuthor(bool bFlag=true);
+    void            SetFilterAuthor(bool bFlag);
     void            SetAuthor(const OUString &);
-    void            SetFilterComment(bool bFlag=true);
+    void            SetFilterComment(bool bFlag);
     void            SetCommentParams( const utl::SearchParam* pSearchPara );
 
     void            UpdateFilterTest();
@@ -149,7 +149,7 @@ public:
         The rStr contains the entire redline entry; the columns are delimited by '\t'.
     */
     SvTreeListEntry* InsertEntry(const OUString &rStr, RedlinData *pUserData, const Color&,
-                                 SvTreeListEntry* pParent = nullptr, sal_uIntPtr nPos = TREELIST_APPEND);
+                                 SvTreeListEntry* pParent, sal_uIntPtr nPos = TREELIST_APPEND);
 
     /** Insert a redline entry.
 
@@ -157,7 +157,7 @@ public:
         rStr contains the rest of the redline entry; the columns are delimited by '\t'.
     */
     SvTreeListEntry* InsertEntry(const Image &rRedlineType, const OUString &rStr, RedlinData *pUserData,
-                                 SvTreeListEntry* pParent = nullptr, sal_uIntPtr nPos = TREELIST_APPEND);
+                                 SvTreeListEntry* pParent, sal_uIntPtr nPos = TREELIST_APPEND);
 
     virtual SvTreeListEntry* CreateEntry() const override;
 
@@ -251,11 +251,11 @@ public:
 
     void            ShowAction(bool bShow=true);
 
-    void            CheckDate(bool bFlag=true);
-    void            CheckAuthor(bool bFlag=true);
-    void            CheckRange(bool bFlag=true);
-    void            CheckAction(bool bFlag=true);
-    void            CheckComment(bool bFlag=true);
+    void            CheckDate(bool bFlag);
+    void            CheckAuthor(bool bFlag);
+    void            CheckRange(bool bFlag);
+    void            CheckAction(bool bFlag);
+    void            CheckComment(bool bFlag);
 
     ListBox*        GetLbAction() { return m_pLbAction;}
 
@@ -305,10 +305,10 @@ public:
     void            InsertCalcHeader();
     SvxRedlinTable* GetTableControl() { return m_pViewData;}
 
-    void            EnableAccept(bool bFlag=true);
-    void            EnableAcceptAll(bool bFlag=true);
-    void            EnableReject(bool bFlag=true);
-    void            EnableRejectAll(bool bFlag=true);
+    void            EnableAccept(bool bFlag);
+    void            EnableAcceptAll(bool bFlag);
+    void            EnableReject(bool bFlag);
+    void            EnableRejectAll(bool bFlag);
     void            EnableUndo(bool bFlag=true);
     void            DisableUndo()       {EnableUndo(false);}
     void            ShowUndo();
diff --git a/include/svx/dlgctrl.hxx b/include/svx/dlgctrl.hxx
index 21581ff..36b9d0f 100644
--- a/include/svx/dlgctrl.hxx
+++ b/include/svx/dlgctrl.hxx
@@ -109,7 +109,7 @@ protected:
 public:
     SvxRectCtl( vcl::Window* pParent, RectPoint eRpt = RectPoint::MM,
                 sal_uInt16 nBorder = 200, sal_uInt16 nCircle = 80 );
-    void SetControlSettings(RectPoint eRpt = RectPoint::MM, sal_uInt16 nBorder = 200,
+    void SetControlSettings(RectPoint eRpt, sal_uInt16 nBorder = 200,
         sal_uInt16 nCircle = 80);
     virtual ~SvxRectCtl();
     virtual void dispose() override;
diff --git a/include/svx/float3d.hxx b/include/svx/float3d.hxx
index 4398126..70103b5 100644
--- a/include/svx/float3d.hxx
+++ b/include/svx/float3d.hxx
@@ -201,7 +201,7 @@ private:
     SVX_DLLPRIVATE void         Reset();
 
     SVX_DLLPRIVATE bool         LBSelectColor( ColorLB* pLb, const Color& rColor );
-    SVX_DLLPRIVATE sal_uInt16   GetLightSource( const PushButton* pBtn = nullptr );
+    SVX_DLLPRIVATE sal_uInt16   GetLightSource( const PushButton* pBtn );
     SVX_DLLPRIVATE ColorLB*     GetLbByButton( const PushButton* pBtn = nullptr );
 
     SVX_DLLPRIVATE bool         GetUILightState( const PushButton& rBtn ) const;
diff --git a/include/svx/fmtools.hxx b/include/svx/fmtools.hxx
index a4d2883..043ae36 100644
--- a/include/svx/fmtools.hxx
+++ b/include/svx/fmtools.hxx
@@ -78,8 +78,8 @@ namespace vcl { class Window; }
 
 // displaying a database exception for the user
 // display info about a simple css::sdbc::SQLException
-void displayException(const css::sdbc::SQLException&, vcl::Window* _pParent = nullptr);
-SVX_DLLPUBLIC void displayException(const css::sdb::SQLContext&, vcl::Window* _pParent = nullptr);
+void displayException(const css::sdbc::SQLException&, vcl::Window* _pParent);
+SVX_DLLPUBLIC void displayException(const css::sdb::SQLContext&, vcl::Window* _pParent);
 void displayException(const css::sdb::SQLErrorEvent&);
 void displayException(const css::uno::Any&, vcl::Window* _pParent = nullptr);
 
diff --git a/include/svx/fntctrl.hxx b/include/svx/fntctrl.hxx
index d75bf35..d491e8f 100644
--- a/include/svx/fntctrl.hxx
+++ b/include/svx/fntctrl.hxx
@@ -85,7 +85,7 @@ public:
     void                SetFontEscapement( sal_uInt8 nProp, sal_uInt8 nEscProp, short nEsc );
 
     void                SetFromItemSet( const SfxItemSet &rSet,
-                                        bool bPreviewBackgroundToCharacter = false );
+                                        bool bPreviewBackgroundToCharacter );
 
     virtual Size GetOptimalSize() const override;
 };
diff --git a/include/svx/framelink.hxx b/include/svx/framelink.hxx
index 7f3a5ba..bbe5234 100644
--- a/include/svx/framelink.hxx
+++ b/include/svx/framelink.hxx
@@ -140,9 +140,9 @@ public:
     void                Set( const Color& rColorPrim, const Color& rColorSecn, const Color& rColorGap, bool bUseGapColor,
                             double nP, double nD, double nS );
     /** Sets the frame style to the passed SvxBorderLine struct. */
-    void                Set( const editeng::SvxBorderLine& rBorder, double fScale = 1.0, sal_uInt16 nMaxWidth = SAL_MAX_UINT16 );
+    void                Set( const editeng::SvxBorderLine& rBorder, double fScale, sal_uInt16 nMaxWidth = SAL_MAX_UINT16 );
     /** Sets the frame style to the passed SvxBorderLine struct. Clears the style, if pBorder is 0. */
-    void                Set( const editeng::SvxBorderLine* pBorder, double fScale = 1.0, sal_uInt16 nMaxWidth = SAL_MAX_UINT16 );
+    void                Set( const editeng::SvxBorderLine* pBorder, double fScale, sal_uInt16 nMaxWidth = SAL_MAX_UINT16 );
 
     /** Sets a new reference point handling mode, does not modify other settings. */
     inline void         SetRefMode( RefMode eRefMode ) { meRefMode = eRefMode; }
@@ -446,7 +446,7 @@ SVX_DLLPUBLIC drawinglayer::primitive2d::Primitive2DContainer CreateBorderPrimit
     const Style&        rRFromB,        /// Vertical frame border from bottom to right end of rBorder.
     const DiagStyle&    rRFromBL,       /// Diagonal frame border from bottom-left to right end of rBorder.
 
-    const Color*        pForceColor = nullptr,/// If specified, overrides frame border color.
+    const Color*        pForceColor,    /// If specified, overrides frame border color.
     const long          rRotationT = 9000, /// Angle of the top slanted frames in 100th of degree
     const long          rRotationB = 9000  /// Angle of the bottom slanted frames in 100th of degree
 );
@@ -464,7 +464,7 @@ SVX_DLLPUBLIC drawinglayer::primitive2d::Primitive2DContainer CreateBorderPrimit
     const Style&        rRFromR,        /// Horizontal frame border from right to right end of rBorder.
     const Style&        rRFromB,        /// Vertical frame border from bottom to right end of rBorder.
 
-    const Color*        pForceColor = nullptr,/// If specified, overrides frame border color.
+    const Color*        pForceColor,    /// If specified, overrides frame border color.
     const long          rRotationT = 9000, /// Angle of the top slanted frame in 100th of degrees
     const long          rRotationB = 9000  /// Angle of the bottom slanted frame in 100th of degrees
 );
@@ -624,7 +624,7 @@ SVX_DLLPUBLIC void DrawDiagFrameBorders(
     const Style&        rTRFromB,       /// Vertical frame border from bottom to top-right end of rBLTR.
     const Style&        rTRFromL,       /// Horizontal frame border from left to top-right end of rBLTR.
 
-    const Color*        pForceColor = nullptr,        /// If specified, overrides frame border color.
+    const Color*        pForceColor,    /// If specified, overrides frame border color.
     bool                bDiagDblClip = false    /// true = Use clipping for crossing double frame borders.
 );
 
diff --git a/include/svx/framelinkarray.hxx b/include/svx/framelinkarray.hxx
index 59edb8c..d48fbf8 100644
--- a/include/svx/framelinkarray.hxx
+++ b/include/svx/framelinkarray.hxx
@@ -82,7 +82,7 @@ public:
     size_t              GetCellCount() const;
 
     /** Returns the cell index from the cell address (nCol,nRow). */
-    size_t              GetCellIndex( size_t nCol, size_t nRow, bool bRTL = false) const;
+    size_t              GetCellIndex( size_t nCol, size_t nRow, bool bRTL) const;
 
     // cell border styles -----------------------------------------------------
 
@@ -334,7 +334,7 @@ public:
     void                DrawRange( drawinglayer::processor2d::BaseProcessor2D* rDev,
                             size_t nFirstCol, size_t nFirstRow,
                             size_t nLastCol, size_t nLastRow,
-                            const Color* pForceColor = nullptr ) const;
+                            const Color* pForceColor ) const;
 
     /** Draws the part of the specified range, that is inside the clipping range.
         @param pForceColor
diff --git a/include/svx/frmsel.hxx b/include/svx/frmsel.hxx
index e1fd200..471d1fd 100644
--- a/include/svx/frmsel.hxx
+++ b/include/svx/frmsel.hxx
@@ -145,7 +145,7 @@ public:
     /** Returns true, if any of the enabled frame borders is selected. */
     bool                IsAnyBorderSelected() const;
     /** Selects or deselects all frame borders. */
-    void                SelectAllBorders( bool bSelect = true );
+    void                SelectAllBorders( bool bSelect );
     /** Deselects all frame borders. */
     inline void         DeselectAllBorders() { SelectAllBorders( false ); }
 
diff --git a/include/svx/gallery.hxx b/include/svx/gallery.hxx
index f0ca115..fe62383 100644
--- a/include/svx/gallery.hxx
+++ b/include/svx/gallery.hxx
@@ -62,19 +62,19 @@ public:
     static bool                 InsertURL( sal_uInt32 nThemeId, const OUString& rURL );
 
     static bool                 GetGraphicObj( const OUString& rThemeName, sal_uInt32 nPos,
-                                               Graphic* pGraphic = nullptr, BitmapEx* pThumb = nullptr,
+                                               Graphic* pGraphic, BitmapEx* pThumb = nullptr,
                                                bool bProgess = false );
     static bool                 GetGraphicObj( sal_uInt32 nThemeId, sal_uInt32 nPos,
-                                               Graphic* pGraphic = nullptr, BitmapEx* pThumb = nullptr,
+                                               Graphic* pGraphic, BitmapEx* pThumb = nullptr,
                                                bool bProgess = false );
 
     static sal_uInt32           GetSdrObjCount( const OUString& rThemeName );
     static sal_uInt32           GetSdrObjCount( sal_uInt32 nThemeId );
 
     static bool                 GetSdrObj( const OUString& rThemeName, sal_uInt32 nSdrModelPos,
-                                           SdrModel* pModel = nullptr, BitmapEx* pThumb = nullptr );
+                                           SdrModel* pModel, BitmapEx* pThumb = nullptr );
     static bool                 GetSdrObj( sal_uInt32 nThemeId, sal_uInt32 nSdrModelPos,
-                                           SdrModel* pModel = nullptr, BitmapEx* pThumb = nullptr );
+                                           SdrModel* pModel, BitmapEx* pThumb = nullptr );
 
     static bool                 BeginLocking( const OUString& rThemeName );
     static bool                 BeginLocking( sal_uInt32 nThemeId );
diff --git a/include/svx/galtheme.hxx b/include/svx/galtheme.hxx
index 3c6ef1d..5ec4a59 100644
--- a/include/svx/galtheme.hxx
+++ b/include/svx/galtheme.hxx
@@ -132,7 +132,7 @@ public:
     SAL_DLLPRIVATE const OUString& GetRealName() const;
 
     // used for building gallery themes during compilation:
-    SAL_DLLPRIVATE void         SetDestDir(const OUString& rDestDir, bool bRelative = true)
+    SAL_DLLPRIVATE void         SetDestDir(const OUString& rDestDir, bool bRelative)
                                 { m_aDestDir = rDestDir; m_bDestDirRelative = bRelative; }
 
     SAL_DLLPRIVATE const INetURLObject& GetThmURL() const;
@@ -185,17 +185,17 @@ public:
     SAL_DLLPRIVATE bool         GetThumb( sal_uIntPtr nPos, BitmapEx& rBmp, bool bProgress = false );
 
     bool                        GetGraphic( sal_uIntPtr nPos, Graphic& rGraphic, bool bProgress = false );
-    bool                        InsertGraphic( const Graphic& rGraphic, sal_uIntPtr nInsertPos = CONTAINER_APPEND );
+    bool                        InsertGraphic( const Graphic& rGraphic, sal_uIntPtr nInsertPos );
 
     bool                        GetModel( sal_uIntPtr nPos, SdrModel& rModel, bool bProgress = false );
-    bool                        InsertModel( const FmFormModel& rModel, sal_uIntPtr nInsertPos = CONTAINER_APPEND );
+    bool                        InsertModel( const FmFormModel& rModel, sal_uIntPtr nInsertPos );
 
     SAL_DLLPRIVATE bool         GetModelStream( sal_uIntPtr nPos, tools::SvRef<SotStorageStream>& rModelStreamRef );
-    SAL_DLLPRIVATE bool         InsertModelStream( const tools::SvRef<SotStorageStream>& rModelStream, sal_uIntPtr nInsertPos = CONTAINER_APPEND );
+    SAL_DLLPRIVATE bool         InsertModelStream( const tools::SvRef<SotStorageStream>& rModelStream, sal_uIntPtr nInsertPos );
 
     SAL_DLLPRIVATE bool         GetURL( sal_uIntPtr nPos, INetURLObject& rURL );
     bool                        InsertURL( const INetURLObject& rURL, sal_uIntPtr nInsertPos = CONTAINER_APPEND );
-    SAL_DLLPRIVATE bool         InsertFileOrDirURL( const INetURLObject& rFileOrDirURL, sal_uIntPtr nInsertPos = CONTAINER_APPEND );
+    SAL_DLLPRIVATE bool         InsertFileOrDirURL( const INetURLObject& rFileOrDirURL, sal_uIntPtr nInsertPos );
 
     SAL_DLLPRIVATE bool         InsertTransferable( const css::uno::Reference< css::datatransfer::XTransferable >& rxTransferable, sal_uIntPtr nInsertPos );
 
diff --git a/include/svx/imapdlg.hxx b/include/svx/imapdlg.hxx
index 4a4390c..e191a25 100644
--- a/include/svx/imapdlg.hxx
+++ b/include/svx/imapdlg.hxx
@@ -51,7 +51,7 @@ class SVX_DLLPUBLIC SvxIMapDlgChildWindow : public SfxChildWindow
 
     SFX_DECL_CHILDWINDOW_WITHID( SvxIMapDlgChildWindow );
 
-    static void UpdateIMapDlg( const Graphic& rGraphic, const ImageMap* pImageMap = nullptr,
+    static void UpdateIMapDlg( const Graphic& rGraphic, const ImageMap* pImageMap,
                                const TargetList* pTargetList = nullptr, void* pEditingObj = nullptr );
 };
 
@@ -152,7 +152,7 @@ public:
 
     void                SetTargetList( const TargetList& rTargetList );
 
-    void                UpdateLink( const Graphic& rGraphic, const ImageMap* pImageMap = nullptr,
+    void                UpdateLink( const Graphic& rGraphic, const ImageMap* pImageMap,
                                 const TargetList* pTargetList = nullptr, void* pEditingObj = nullptr );
 
     virtual void        KeyInput( const KeyEvent& rKEvt ) override;
diff --git a/include/svx/nbdtmg.hxx b/include/svx/nbdtmg.hxx
index 217f7e7..7667332 100644
--- a/include/svx/nbdtmg.hxx
+++ b/include/svx/nbdtmg.hxx
@@ -209,9 +209,9 @@ class SVX_DLLPUBLIC NBOTypeMgrBase
         }
         virtual ~NBOTypeMgrBase() {}
         virtual void Init()=0;
-        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=(sal_uInt16)0xFFFF)=0;
-        virtual void ApplyNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,sal_uInt16 mLevel=(sal_uInt16)0xFFFF, bool isDefault=false,bool isResetSize=false)=0;
+        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 bool IsCustomized(sal_uInt16 nIndex)=0;
         static sal_uInt16 IsSingleLevel(sal_uInt16 nCurLevel);
@@ -242,8 +242,8 @@ class SVX_DLLPUBLIC BulletsTypeMgr: public NBOTypeMgrBase
         virtual ~BulletsTypeMgr() {}
         virtual void Init() override;
         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=(sal_uInt16)0xFFFF) override;
-        virtual void ApplyNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,sal_uInt16 mLevel=(sal_uInt16)0xFFFF,bool isDefault=false,bool isResetSize=false) 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 bool IsCustomized(sal_uInt16 nIndex) override;
         static sal_Unicode GetBulChar(sal_uInt16 nIndex);
@@ -264,8 +264,8 @@ class SVX_DLLPUBLIC GraphyicBulletsTypeMgr: public NBOTypeMgrBase
         virtual ~GraphyicBulletsTypeMgr();
         virtual void Init() override;
         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=(sal_uInt16)0xFFFF) override;
-        virtual void ApplyNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,sal_uInt16 mLevel=(sal_uInt16)0xFFFF,bool isDefault=false,bool isResetSize=false) 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 bool IsCustomized(sal_uInt16 nIndex) override;
         OUString GetGrfName(sal_uInt16 nIndex);
@@ -285,8 +285,8 @@ class SVX_DLLPUBLIC MixBulletsTypeMgr: public NBOTypeMgrBase
         virtual ~MixBulletsTypeMgr() {}
         virtual void Init() override;
         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=(sal_uInt16)0xFFFF) override;
-        virtual void ApplyNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,sal_uInt16 mLevel=(sal_uInt16)0xFFFF,bool isDefault=false,bool isResetSize=false) 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 bool IsCustomized(sal_uInt16 nIndex) override;
         static MixBulletsTypeMgr& GetInstance();
@@ -303,8 +303,8 @@ class SVX_DLLPUBLIC NumberingTypeMgr: public NBOTypeMgrBase
         virtual ~NumberingTypeMgr();
         virtual void Init() override;
         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=(sal_uInt16)0xFFFF) override;
-        virtual void ApplyNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,sal_uInt16 mLevel=(sal_uInt16)0xFFFF,bool isDefault=false,bool isResetSize=false) 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 bool IsCustomized(sal_uInt16 nIndex) override;
         static NumberingTypeMgr& GetInstance();
@@ -321,8 +321,8 @@ class SVX_DLLPUBLIC OutlineTypeMgr: public NBOTypeMgrBase
         virtual ~OutlineTypeMgr() {}
         virtual void Init() override;
         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=(sal_uInt16)0xFFFF) override;
-        virtual void ApplyNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,sal_uInt16 mLevel=(sal_uInt16)0xFFFF,bool isDefault=false,bool isResetSize=false) 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 bool IsCustomized(sal_uInt16 nIndex) override;
         static OutlineTypeMgr& GetInstance();
diff --git a/include/svx/numfmtsh.hxx b/include/svx/numfmtsh.hxx
index da2b07b..68053d4 100644
--- a/include/svx/numfmtsh.hxx
+++ b/include/svx/numfmtsh.hxx
@@ -81,7 +81,7 @@ public:
                                               sal_uInt32         nFormatKey,
                                               SvxNumberValueType eNumValType,
                                               double             nNumVal,
-                                              const OUString*    pNumStr = nullptr );
+                                              const OUString*    pNumStr );
 
 
     void                GetInitSettings( sal_uInt16&           nCatLbPos,
diff --git a/include/svx/orienthelper.hxx b/include/svx/orienthelper.hxx
index 80d252f..123a440 100644
--- a/include/svx/orienthelper.hxx
+++ b/include/svx/orienthelper.hxx
@@ -73,7 +73,7 @@ public:
     void                Enable( bool bEnable = true );
 
     /** Shows or hides the dial control and all dependent windows. */
-    void                Show( bool bShow = true );
+    void                Show( bool bShow );
     /** Hides the dial control and all dependent windows. */
     inline void         Hide() { Show( false ); }
 
@@ -83,7 +83,7 @@ public:
     TriState            GetStackedState() const;
 
     /** Enables/disables the "don't know" state of the "Stacked text" check box. */
-    void                EnableStackedTriState( bool bEnable = true );
+    void                EnableStackedTriState( bool bEnable );
 
 private:
     std::unique_ptr< OrientationHelper_Impl > mpImpl;
diff --git a/include/svx/relfld.hxx b/include/svx/relfld.hxx
index ab20757..6652589 100644
--- a/include/svx/relfld.hxx
+++ b/include/svx/relfld.hxx
@@ -42,7 +42,7 @@ protected:
 public:
     SvxRelativeField(vcl::Window* pParent, WinBits nBits, FieldUnit eUnit);
 
-    void            EnableRelativeMode( sal_uInt16 nMin = 50, sal_uInt16 nMax = 150,
+    void            EnableRelativeMode( sal_uInt16 nMin, sal_uInt16 nMax = 150,
                                         sal_uInt16 nStep = 5 );
     void            SetRelative( bool bRelative );
     bool            IsRelative() const { return bRelative; }
diff --git a/include/svx/ruler.hxx b/include/svx/ruler.hxx
index ca44488..5cdec68 100644
--- a/include/svx/ruler.hxx
+++ b/include/svx/ruler.hxx
@@ -127,7 +127,7 @@ class SVX_DLLPUBLIC SvxRuler: public Ruler, public SfxListener
 
     void StartListening_Impl();
     long GetCorrectedDragPos(bool bLeft = true, bool bRight = true );
-    void DrawLine_Impl(long &lTabPos, int, bool Horizontal = true);
+    void DrawLine_Impl(long &lTabPos, int, bool Horizontal);
     sal_uInt16 GetObjectBordersOff(sal_uInt16 nIdx) const;
 
     // page borders or surrounding frame
@@ -224,7 +224,7 @@ class SVX_DLLPUBLIC SvxRuler: public Ruler, public SfxListener
         MoveLeft,
         MoveRight
     };
-    void UpdateParaContents_Impl(long lDiff, UpdateType = UpdateType::MoveAll);
+    void UpdateParaContents_Impl(long lDiff, UpdateType);
 
 protected:
     virtual void    Command( const CommandEvent& rCEvt ) override;
@@ -267,7 +267,7 @@ public:
     void SetDefTabDist(long);
 
     // set/get NullOffset in logic units
-    void SetNullOffsetLogic(long lOff = 0);
+    void SetNullOffsetLogic(long lOff);
 
     void SetActive(bool bOn = true);
 
@@ -277,7 +277,7 @@ public:
     }
 
     //#i24363# tab stops relative to indent
-    void SetTabsRelativeToIndent( bool bRel = true );
+    void SetTabsRelativeToIndent( bool bRel );
 };
 
 #endif
diff --git a/include/svx/sdr/overlay/overlaymanager.hxx b/include/svx/sdr/overlay/overlaymanager.hxx
index 44cb219..2be5046 100644
--- a/include/svx/sdr/overlay/overlaymanager.hxx
+++ b/include/svx/sdr/overlay/overlaymanager.hxx
@@ -118,15 +118,15 @@ namespace sdr
 
             // stripe support ColA
             const Color& getStripeColorA() const { return maStripeColorA; }
-            void setStripeColorA(Color aNew= Color(COL_BLACK));
+            void setStripeColorA(Color aNew);
 
             // stripe support ColB
             const Color& getStripeColorB() const { return maStripeColorB; }
-            void setStripeColorB(Color aNew = Color(COL_WHITE));
+            void setStripeColorB(Color aNew);
 
             // stripe support StripeLengthPixel
             sal_uInt32 getStripeLengthPixel() const { return mnStripeLengthPixel; }
-            void setStripeLengthPixel(sal_uInt32 nNew = 5L);
+            void setStripeLengthPixel(sal_uInt32 nNew);
 
             // access to maDrawinglayerOpt
             const SvtOptionsDrawinglayer& getDrawinglayerOpt() const { return maDrawinglayerOpt; }
diff --git a/include/svx/sdr/properties/defaultproperties.hxx b/include/svx/sdr/properties/defaultproperties.hxx
index 0c70cdf..f629a31 100644
--- a/include/svx/sdr/properties/defaultproperties.hxx
+++ b/include/svx/sdr/properties/defaultproperties.hxx
@@ -76,7 +76,7 @@ namespace sdr
 
             // clear single item direct, do not do any notifies or things like that.
             // Also supports complete deleteion of items when default parameter 0 is used.
-            virtual void ClearObjectItemDirect(const sal_uInt16 nWhich = 0) override;
+            virtual void ClearObjectItemDirect(const sal_uInt16 nWhich) override;
 
             // set complete item set
             virtual void SetObjectItemSet(const SfxItemSet& rSet) override;
diff --git a/include/svx/sdr/properties/properties.hxx b/include/svx/sdr/properties/properties.hxx
index 80ae6ab..e1b9a5f 100644
--- a/include/svx/sdr/properties/properties.hxx
+++ b/include/svx/sdr/properties/properties.hxx
@@ -126,12 +126,12 @@ namespace sdr
 
             // Clear a single item, iterate over hierarchies if necessary. Default
             // Implementation falls back to ClearObjectItem().
-            virtual void ClearMergedItem(const sal_uInt16 nWhich = 0);
+            virtual void ClearMergedItem(const sal_uInt16 nWhich);
 
             // Clear single item direct. Only uses AllowItemChange() and ItemChange(),
             // but not PostItemChange() and ItemSetChanged() calls.
             // Also supports complete deletion of items when default parameter 0 is used.
-            virtual void ClearObjectItemDirect(const sal_uInt16 nWhich = 0) = 0;
+            virtual void ClearObjectItemDirect(const sal_uInt16 nWhich) = 0;
 
             // Set a new StyleSheet. Registers as listener at the StyleSheet to get knowledge
             // of StyleSheet changes.
@@ -146,7 +146,7 @@ namespace sdr
 
             // Move local items to a new ItemPool.
             // Override this to do it for hierarchical objects like e.g. groups.
-            virtual void MoveToItemPool(SfxItemPool* pSrcPool, SfxItemPool* pDestPool, SdrModel* pNewModel = nullptr);
+            virtual void MoveToItemPool(SfxItemPool* pSrcPool, SfxItemPool* pDestPool, SdrModel* pNewModel);
 
             // Set new model.
             virtual void SetModel(SdrModel* pOldModel, SdrModel* pNewModel);
diff --git a/include/svx/sdr/table/tablecontroller.hxx b/include/svx/sdr/table/tablecontroller.hxx
index b8cf893..aec0bbc 100644
--- a/include/svx/sdr/table/tablecontroller.hxx
+++ b/include/svx/sdr/table/tablecontroller.hxx
@@ -134,7 +134,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, const css::awt::MouseEvent* pMouseEvent = nullptr, sal_uInt16 nAction = 0 );
+    SVX_DLLPRIVATE void EditCell( const CellPos& rPos, vcl::Window* pWindow, const css::awt::MouseEvent* pMouseEvent, sal_uInt16 nAction = 0 );
     SVX_DLLPRIVATE void StopTextEdit();
 
     SVX_DLLPRIVATE sal_uInt16 getKeyboardAction( const KeyEvent& rKEvt, vcl::Window* pWindow );
diff --git a/include/svx/svdcrtv.hxx b/include/svx/svdcrtv.hxx
index 33fa675..7eab877 100644
--- a/include/svx/svdcrtv.hxx
+++ b/include/svx/svdcrtv.hxx
@@ -148,7 +148,7 @@ public:
 
     // Attributes of the object that is in the process of being created
     /* new interface src537 */
-    bool GetAttributes(SfxItemSet& rTargetSet, bool bOnlyHardAttr=false) const;
+    bool GetAttributes(SfxItemSet& rTargetSet, bool bOnlyHardAttr) const;
 
     bool SetAttributes(const SfxItemSet& rSet, bool bReplaceAll);
     SfxStyleSheet* GetStyleSheet() const; // SfxStyleSheet* GetStyleSheet(bool& rOk) const;
diff --git a/include/svx/svddrgv.hxx b/include/svx/svddrgv.hxx
index f642bc4..8df3f1d 100644
--- a/include/svx/svddrgv.hxx
+++ b/include/svx/svddrgv.hxx
@@ -89,12 +89,12 @@ public:
     // In case of return value 'false', the position could not be
     // determined (e.g. point shift, multiple selection, shift of the
     // mirror axis,...)
-    bool TakeDragObjAnchorPos(Point& rPos, bool bTopRight = false ) const;
+    bool TakeDragObjAnchorPos(Point& rPos, bool bTopRight ) const;
 
     // 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=nullptr, SdrHdl* pHdl=nullptr, short nMinMov=-3, SdrDragMethod* pForcedMeth=nullptr);
+    virtual bool BegDragObj(const Point& rPnt, OutputDevice* pOut, SdrHdl* pHdl=nullptr, short nMinMov=-3, SdrDragMethod* pForcedMeth=nullptr);
     void MovDragObj(const Point& rPnt);
     bool EndDragObj(bool bCopy=false);
     void BrkDragObj();
diff --git a/include/svx/view3d.hxx b/include/svx/view3d.hxx
index e680c1b..c6bf49b 100644
--- a/include/svx/view3d.hxx
+++ b/include/svx/view3d.hxx
@@ -83,7 +83,7 @@ public:
 
     // Access to the default attributes.
     E3dDefaultAttributes& Get3DDefaultAttributes() { return a3DDefaultAttr; }
-    virtual bool BegDragObj(const Point& rPnt, OutputDevice* pOut = nullptr, SdrHdl* pHdl = nullptr, short nMinMov = -3, SdrDragMethod* pForcedMeth = nullptr) override;
+    virtual bool BegDragObj(const Point& rPnt, OutputDevice* pOut, SdrHdl* pHdl = nullptr, short nMinMov = -3, SdrDragMethod* pForcedMeth = nullptr) override;
     virtual void CheckPossibilities() override;
 
     // Get/Set Event
diff --git a/svx/inc/sdr/properties/attributeproperties.hxx b/svx/inc/sdr/properties/attributeproperties.hxx
index d8a9bc5..262cf77 100644
--- a/svx/inc/sdr/properties/attributeproperties.hxx
+++ b/svx/inc/sdr/properties/attributeproperties.hxx
@@ -70,7 +70,7 @@ namespace sdr
             virtual SfxStyleSheet* GetStyleSheet() const override;
 
             // Move properties to a new ItemPool.
-            virtual void MoveToItemPool(SfxItemPool* pSrcPool, SfxItemPool* pDestPool, SdrModel* pNewModel = nullptr) override;
+            virtual void MoveToItemPool(SfxItemPool* pSrcPool, SfxItemPool* pDestPool, SdrModel* pNewModel) override;
 
             // Set new model.
             virtual void SetModel(SdrModel* pOldModel, SdrModel* pNewModel) override;
diff --git a/svx/inc/sdr/properties/customshapeproperties.hxx b/svx/inc/sdr/properties/customshapeproperties.hxx
index 577996a..3f1cc40 100644
--- a/svx/inc/sdr/properties/customshapeproperties.hxx
+++ b/svx/inc/sdr/properties/customshapeproperties.hxx
@@ -54,7 +54,7 @@ namespace sdr
 
             // clear single item direct, do not do any notifies or things like that.
             // Also supports complete deleteion of items when default parameter 0 is used.
-            virtual void ClearObjectItemDirect(const sal_uInt16 nWhich = 0) override;
+            virtual void ClearObjectItemDirect(const sal_uInt16 nWhich) override;
 
         public:
 
diff --git a/svx/inc/sdr/properties/e3dsceneproperties.hxx b/svx/inc/sdr/properties/e3dsceneproperties.hxx
index 3a2e98a..bd415df 100644
--- a/svx/inc/sdr/properties/e3dsceneproperties.hxx
+++ b/svx/inc/sdr/properties/e3dsceneproperties.hxx
@@ -63,7 +63,7 @@ namespace sdr
             virtual void SetMergedItem(const SfxPoolItem& rItem) override;
 
             // Clear a single item, iterate over hierarchies if necessary.
-            virtual void ClearMergedItem(const sal_uInt16 nWhich = 0) override;
+            virtual void ClearMergedItem(const sal_uInt16 nWhich) override;
 
             // set a new StyleSheet and broadcast
             virtual void SetStyleSheet(SfxStyleSheet* pNewStyleSheet, bool bDontRemoveHardAttr) override;
@@ -72,7 +72,7 @@ namespace sdr
             virtual SfxStyleSheet* GetStyleSheet() const override;
 
             // Move properties to a new ItemPool. Default implementation does nothing.
-            virtual void MoveToItemPool(SfxItemPool* pSrcPool, SfxItemPool* pDestPool, SdrModel* pNewModel = nullptr) override;
+            virtual void MoveToItemPool(SfxItemPool* pSrcPool, SfxItemPool* pDestPool, SdrModel* pNewModel) override;
 
             // Special for scene:
             void SetSceneItemsFromCamera();
diff --git a/svx/inc/sdr/properties/emptyproperties.hxx b/svx/inc/sdr/properties/emptyproperties.hxx
index 2028077..453e357 100644
--- a/svx/inc/sdr/properties/emptyproperties.hxx
+++ b/svx/inc/sdr/properties/emptyproperties.hxx
@@ -75,7 +75,7 @@ namespace sdr
 
             // clear single item direct, do not do any notifies or things like that.
             // Also supports complete deleteion of items when default parameter 0 is used.
-            virtual void ClearObjectItemDirect(const sal_uInt16 nWhich = 0) override;
+            virtual void ClearObjectItemDirect(const sal_uInt16 nWhich) override;
 
             // set complete item set
             virtual void SetObjectItemSet(const SfxItemSet& rSet) override;
diff --git a/svx/inc/sdr/properties/groupproperties.hxx b/svx/inc/sdr/properties/groupproperties.hxx
index a9f4481..615efff 100644
--- a/svx/inc/sdr/properties/groupproperties.hxx
+++ b/svx/inc/sdr/properties/groupproperties.hxx
@@ -82,13 +82,13 @@ namespace sdr
 
             // clear single item direct, do not do any notifies or things like that.
             // Also supports complete deleteion of items when default parameter 0 is used.
-            virtual void ClearObjectItemDirect(const sal_uInt16 nWhich = 0) override;
+            virtual void ClearObjectItemDirect(const sal_uInt16 nWhich) override;
 
             // Set a single item, iterate over hierarchies if necessary.
             virtual void SetMergedItem(const SfxPoolItem& rItem) override;
 
             // Clear a single item, iterate over hierarchies if necessary.
-            virtual void ClearMergedItem(const sal_uInt16 nWhich = 0) override;
+            virtual void ClearMergedItem(const sal_uInt16 nWhich) override;
 
             // set complete item set
             virtual void SetObjectItemSet(const SfxItemSet& rSet) override;
@@ -104,7 +104,7 @@ namespace sdr
             virtual void ForceDefaultAttributes() override;
 
             // Move properties to a new ItemPool.
-            virtual void MoveToItemPool(SfxItemPool* pSrcPool, SfxItemPool* pDestPool, SdrModel* pNewModel = nullptr) override;
+            virtual void MoveToItemPool(SfxItemPool* pSrcPool, SfxItemPool* pDestPool, SdrModel* pNewModel) override;
 
             // force all attributes which come from styles to hard attributes
             // to be able to live without the style.


More information about the Libreoffice-commits mailing list