From a40278562557828634886924c82f58e215be9756 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 5 Aug 2016 12:03:30 +0200 Subject: loplugin:countusersofdefaultparams in sfx2..svgio Change-Id: Ia01f3a9aa21c88df5fe5242ad4a3c0acbe68fda0 Reviewed-on: https://gerrit.libreoffice.org/27903 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- sfx2/source/doc/doctemplates.cxx | 2 +- sfx2/source/inc/macroloader.hxx | 2 +- sfx2/source/inc/splitwin.hxx | 4 +- sfx2/source/inc/statcach.hxx | 8 ++-- sfx2/source/inc/templdgi.hxx | 18 ++++----- sfx2/source/inc/workwin.hxx | 4 +- .../OGLTrans/generic/OGLTrans_TransitionImpl.cxx | 11 +++--- slideshow/source/engine/slideshowimpl.cxx | 2 +- slideshow/source/inc/hslcolor.hxx | 2 +- sot/source/sdstor/stgavl.hxx | 2 +- sot/source/sdstor/stgstrms.hxx | 2 +- starmath/inc/cursor.hxx | 6 +-- stoc/source/typeconv/convert.cxx | 2 +- svgio/inc/svganode.hxx | 2 +- svgio/inc/svgcharacternode.hxx | 2 +- svgio/inc/svgcirclenode.hxx | 8 ++-- svgio/inc/svgclippathnode.hxx | 2 +- svgio/inc/svgellipsenode.hxx | 10 ++--- svgio/inc/svggnode.hxx | 2 +- svgio/inc/svggradientnode.hxx | 20 +++++----- svgio/inc/svggradientstopnode.hxx | 2 +- svgio/inc/svgimagenode.hxx | 12 +++--- svgio/inc/svglinenode.hxx | 10 ++--- svgio/inc/svgmarkernode.hxx | 14 +++---- svgio/inc/svgmasknode.hxx | 10 ++--- svgio/inc/svgnode.hxx | 8 ++-- svgio/inc/svgpathnode.hxx | 6 +-- svgio/inc/svgpatternnode.hxx | 14 +++---- svgio/inc/svgpolynode.hxx | 4 +- svgio/inc/svgrectnode.hxx | 14 +++---- svgio/inc/svgstyleattributes.hxx | 44 +++++++++++----------- svgio/inc/svgsvgnode.hxx | 14 +++---- svgio/inc/svgsymbolnode.hxx | 4 +- svgio/inc/svgtextnode.hxx | 2 +- svgio/inc/svgtextpathnode.hxx | 2 +- svgio/inc/svgusenode.hxx | 10 ++--- 36 files changed, 140 insertions(+), 141 deletions(-) diff --git a/sfx2/source/doc/doctemplates.cxx b/sfx2/source/doc/doctemplates.cxx index 12454078eb9a..2da4daae3dfd 100644 --- a/sfx2/source/doc/doctemplates.cxx +++ b/sfx2/source/doc/doctemplates.cxx @@ -254,7 +254,7 @@ class SfxDocTplService_Impl const OUString& rTitle, const OUString& rUITitle, const OUString& rOwnURL, - bool bWriteableGroup = false ); + bool bWriteableGroup ); void removeFromHierarchy( DocTemplates_EntryData_Impl *pData ); void addToHierarchy( GroupData_Impl *pGroup, DocTemplates_EntryData_Impl *pData ); diff --git a/sfx2/source/inc/macroloader.hxx b/sfx2/source/inc/macroloader.hxx index fe11d3beab0e..a4251e2b9d61 100644 --- a/sfx2/source/inc/macroloader.hxx +++ b/sfx2/source/inc/macroloader.hxx @@ -63,7 +63,7 @@ public: virtual css::uno::Sequence SAL_CALL getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception) override; - static ErrCode loadMacro( const OUString& aURL, css::uno::Any& rRetval, SfxObjectShell* pDoc=nullptr ) throw( css::uno::RuntimeException, css::ucb::ContentCreationException, std::exception ); + static ErrCode loadMacro( const OUString& aURL, css::uno::Any& rRetval, SfxObjectShell* pDoc ) throw( css::uno::RuntimeException, css::ucb::ContentCreationException, std::exception ); virtual css::uno::Reference < css::frame::XDispatch > SAL_CALL queryDispatch( const css::util::URL& aURL, const OUString& sTargetFrameName, diff --git a/sfx2/source/inc/splitwin.hxx b/sfx2/source/inc/splitwin.hxx index b16bb227ce42..b0a97b69dfd7 100644 --- a/sfx2/source/inc/splitwin.hxx +++ b/sfx2/source/inc/splitwin.hxx @@ -57,7 +57,7 @@ private: const Size& rSize, sal_uInt16 nLine, sal_uInt16 nPos, - bool bNewLine=false ); + bool bNewLine ); DECL_LINK_TYPED( TimerHdl, Timer*, void ); bool CursorIsOverRect() const; @@ -91,7 +91,7 @@ public: const Size& rSize, sal_uInt16 nLine, sal_uInt16 nPos, - bool bNewLine=false ); + bool bNewLine ); void MoveWindow( SfxDockingWindow* pDockWin, const Size& rSize, diff --git a/sfx2/source/inc/statcach.hxx b/sfx2/source/inc/statcach.hxx index fe25e99f2f18..77fc56ad7495 100644 --- a/sfx2/source/inc/statcach.hxx +++ b/sfx2/source/inc/statcach.hxx @@ -56,7 +56,7 @@ public: void Release(); const css::frame::FeatureStateEvent& GetStatus() const { return aStatus;} - sal_Int16 Dispatch( const css::uno::Sequence < css::beans::PropertyValue >& aProps, bool bForceSynchron = false ); + sal_Int16 Dispatch( const css::uno::Sequence < css::beans::PropertyValue >& aProps, bool bForceSynchron ); }; class SfxStateCache @@ -77,7 +77,7 @@ friend class BindDispatch_Impl; private: SfxStateCache( const SfxStateCache& rOrig ) = delete; - void SetState_Impl( SfxItemState, const SfxPoolItem*, bool bMaybeDirty=false ); + void SetState_Impl( SfxItemState, const SfxPoolItem*, bool bMaybeDirty ); public: SfxStateCache( sal_uInt16 nFuncId ); @@ -89,7 +89,7 @@ public: const SfxSlotServer* GetSlotServer( SfxDispatcher &rDispat ) { return GetSlotServer( rDispat, css::uno::Reference< css::frame::XDispatchProvider > () ); } css::uno::Reference< css::frame::XDispatch > GetDispatch() const; - sal_Int16 Dispatch( const SfxItemSet* pSet, bool bForceSynchron = false ); + sal_Int16 Dispatch( const SfxItemSet* pSet, bool bForceSynchron ); bool IsControllerDirty() const { return bCtrlDirty; } void ClearCache(); @@ -97,7 +97,7 @@ public: void SetState( SfxItemState, const SfxPoolItem*, bool bMaybeDirty=false ); void SetCachedState(bool bAlways); void Invalidate( bool bWithSlot ); - void SetVisibleState( bool bShow=true ); + void SetVisibleState( bool bShow ); SfxControllerItem* ChangeItemLink( SfxControllerItem* pNewBinding ); SfxControllerItem* GetItemLink() const; diff --git a/sfx2/source/inc/templdgi.hxx b/sfx2/source/inc/templdgi.hxx index 336d23fb5c4a..cf403d7d83b0 100644 --- a/sfx2/source/inc/templdgi.hxx +++ b/sfx2/source/inc/templdgi.hxx @@ -230,7 +230,7 @@ protected: void InvalidateBindings(); virtual void InsertFamilyItem( sal_uInt16 nId, const SfxStyleFamilyItem* pItem ) = 0; - virtual void EnableFamilyItem( sal_uInt16 nId, bool bEnabled = true ) = 0; + virtual void EnableFamilyItem( sal_uInt16 nId, bool bEnabled ) = 0; virtual void ClearFamilyList() = 0; virtual void ReplaceUpdateButtonByMenu(); @@ -255,7 +255,7 @@ protected: void Initialize(); void EnableHierarchical(bool); - void FilterSelect( sal_uInt16 nFilterIdx, bool bForce = false ); + void FilterSelect( sal_uInt16 nFilterIdx, bool bForce ); void SetFamilyState( sal_uInt16 nSlotId, const SfxTemplateItem* ); void SetWaterCanState( const SfxBoolItem* pItem ); bool IsSafeForWaterCan() const; @@ -289,7 +289,7 @@ public: DECL_LINK_TYPED( MenuSelectHdl, Menu*, bool ); DECL_LINK_TYPED( MenuSelectAsyncHdl, void*, void ); - virtual void EnableEdit( bool b = true ) + virtual void EnableEdit( bool b ) { bCanEdit = b; } @@ -297,15 +297,15 @@ public: { bCanDel = b; } - void EnableNew( bool b = true ) + void EnableNew( bool b ) { bCanNew = b; } - void EnableHide( bool b = true ) + void EnableHide( bool b ) { bCanHide = b; } - void EnableShow( bool b = true ) + void EnableShow( bool b ) { bCanShow = b; } @@ -315,7 +315,7 @@ public: return pWindow; } - void EnableTreeDrag(bool b = true); + void EnableTreeDrag(bool b); void EnableExample_Impl(sal_uInt16 nId, bool bEnable); SfxStyleFamily GetActualFamily() const; OUString GetSelectedEntry() const; @@ -356,13 +356,13 @@ private: DECL_LINK_TYPED( MenuSelectHdl, Menu*, bool ); protected: - virtual void EnableEdit( bool = true ) override; + virtual void EnableEdit( bool ) override; virtual void EnableItem( sal_uInt16 nMesId, bool bCheck = true ) override; virtual void CheckItem( sal_uInt16 nMesId, bool bCheck = true ) override; virtual bool IsCheckedItem( sal_uInt16 nMesId ) override; virtual void LoadedFamilies() override; virtual void InsertFamilyItem( sal_uInt16 nId, const SfxStyleFamilyItem* pIten ) override; - virtual void EnableFamilyItem( sal_uInt16 nId, bool bEnabled = true ) override; + virtual void EnableFamilyItem( sal_uInt16 nId, bool bEnabled ) override; virtual void ClearFamilyList() override; virtual void ReplaceUpdateButtonByMenu() override; diff --git a/sfx2/source/inc/workwin.hxx b/sfx2/source/inc/workwin.hxx index b5826a437f05..6643cf2a01a8 100644 --- a/sfx2/source/inc/workwin.hxx +++ b/sfx2/source/inc/workwin.hxx @@ -257,13 +257,13 @@ public: // Methods for all Child windows void DataChanged_Impl( const DataChangedEvent& rDCEvt ); void ReleaseChild_Impl( vcl::Window& rWindow ); - SfxChild_Impl* RegisterChild_Impl( vcl::Window& rWindow, SfxChildAlignment eAlign, bool bCanGetFocus=false ); + SfxChild_Impl* RegisterChild_Impl( vcl::Window& rWindow, SfxChildAlignment eAlign, bool bCanGetFocus ); void ShowChildren_Impl(); void HideChildren_Impl(); bool PrepareClose_Impl(); virtual void ArrangeChildren_Impl( bool bForce = true ); void DeleteControllers_Impl(); - void HidePopups_Impl(bool bHide, bool bParent=false, sal_uInt16 nId=0); + void HidePopups_Impl(bool bHide, bool bParent, sal_uInt16 nId=0); void ConfigChild_Impl(SfxChildIdentifier, SfxDockingConfig, sal_uInt16); void MakeChildrenVisible_Impl( bool bVis ); diff --git a/slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionImpl.cxx b/slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionImpl.cxx index 35845c2abd60..a7e398f8221e 100644 --- a/slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionImpl.cxx +++ b/slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionImpl.cxx @@ -566,12 +566,11 @@ makeReflectionTransition( const Primitives_t& rLeavingSlidePrimitives, const Primitives_t& rEnteringSlidePrimitives, const Operations_t& rOverallOperations, - const TransitionSettings& rSettings = TransitionSettings()) + const TransitionSettings& rSettings) { return std::make_shared( TransitionScene(rLeavingSlidePrimitives, rEnteringSlidePrimitives, rOverallOperations, SceneObjects_t()), - rSettings) - ; + rSettings); } } @@ -616,7 +615,7 @@ makeSimpleTransition( const Primitives_t& rEnteringSlidePrimitives, const Operations_t& rOverallOperations, const SceneObjects_t& rSceneObjects, - const TransitionSettings& rSettings = TransitionSettings()) + const TransitionSettings& rSettings) { return std::make_shared( TransitionScene(rLeavingSlidePrimitives, rEnteringSlidePrimitives, rOverallOperations, rSceneObjects), @@ -638,7 +637,7 @@ makeSimpleTransition( const Primitives_t& rLeavingSlidePrimitives, const Primitives_t& rEnteringSlidePrimitives, const SceneObjects_t& rSceneObjects, - const TransitionSettings& rSettings = TransitionSettings()) + const TransitionSettings& rSettings) { return makeSimpleTransition(rLeavingSlidePrimitives, rEnteringSlidePrimitives, Operations_t(), rSceneObjects, rSettings); } @@ -2227,7 +2226,7 @@ void HoneycombTransition::displaySlides_( double nTime, sal_Int32 glLeavingSlide std::shared_ptr makeHoneycombTransition(const Primitives_t& rLeavingSlidePrimitives, const Primitives_t& rEnteringSlidePrimitives, - const TransitionSettings& rSettings = TransitionSettings()) + const TransitionSettings& rSettings) { // The center point should be adjustable by the user, but we have no way to do that in the UI return std::make_shared(TransitionScene(rLeavingSlidePrimitives, rEnteringSlidePrimitives), diff --git a/slideshow/source/engine/slideshowimpl.cxx b/slideshow/source/engine/slideshowimpl.cxx index 7357054bba35..7f2c54ed152a 100644 --- a/slideshow/source/engine/slideshowimpl.cxx +++ b/slideshow/source/engine/slideshowimpl.cxx @@ -373,7 +373,7 @@ private: /// Resets the current slide transition sound object with a new one: SoundPlayerSharedPtr resetSlideTransitionSound( - uno::Any const& url = uno::Any(), bool bLoopSound = false ); + uno::Any const& url, bool bLoopSound = false ); /// stops the current slide transition sound void stopSlideTransitionSound(); diff --git a/slideshow/source/inc/hslcolor.hxx b/slideshow/source/inc/hslcolor.hxx index 96461c08bace..2c3dca71bd3b 100644 --- a/slideshow/source/inc/hslcolor.hxx +++ b/slideshow/source/inc/hslcolor.hxx @@ -90,7 +90,7 @@ namespace slideshow @param bCCW When true, hue interpolation happens counter-clockwise */ - HSLColor interpolate( const HSLColor& rFrom, const HSLColor& rTo, double t, bool bCCW=true ); + HSLColor interpolate( const HSLColor& rFrom, const HSLColor& rTo, double t, bool bCCW ); } } diff --git a/sot/source/sdstor/stgavl.hxx b/sot/source/sdstor/stgavl.hxx index 14f68fc44062..b02edb02a0fe 100644 --- a/sot/source/sdstor/stgavl.hxx +++ b/sot/source/sdstor/stgavl.hxx @@ -44,7 +44,7 @@ public: virtual ~StgAvlNode(); StgAvlNode* Find( StgAvlNode* ); static bool Insert( StgAvlNode**, StgAvlNode* ); - static bool Remove( StgAvlNode**, StgAvlNode*, bool bDel = true ); + static bool Remove( StgAvlNode**, StgAvlNode*, bool bDel ); virtual short Compare( const StgAvlNode* ) const = 0; }; diff --git a/sot/source/sdstor/stgstrms.hxx b/sot/source/sdstor/stgstrms.hxx index 808fc0a7b3df..c2c61c006b54 100644 --- a/sot/source/sdstor/stgstrms.hxx +++ b/sot/source/sdstor/stgstrms.hxx @@ -71,7 +71,7 @@ protected: short m_nOffset; // offset into current page short m_nPageSize; // logical page size std::vector m_aPagesCache; - void scanBuildPageChainCache(sal_Int32 *pOptionalCalcSize = nullptr); + void scanBuildPageChainCache(sal_Int32 *pOptionalCalcSize); bool Copy( sal_Int32 nFrom, sal_Int32 nBytes ); explicit StgStrm( StgIo& ); public: diff --git a/starmath/inc/cursor.hxx b/starmath/inc/cursor.hxx index cd36b4ee5a97..9fd913969185 100644 --- a/starmath/inc/cursor.hxx +++ b/starmath/inc/cursor.hxx @@ -107,7 +107,7 @@ public: void Move(OutputDevice* pDev, SmMovementDirection direction, bool bMoveAnchor = true); /** Move to the caret position closet to a given point */ - void MoveTo(OutputDevice* pDev, Point pos, bool bMoveAnchor = true); + void MoveTo(OutputDevice* pDev, Point pos, bool bMoveAnchor); /** Delete the current selection or do nothing */ void Delete(); @@ -216,7 +216,7 @@ public: /** Draw the caret */ void Draw(OutputDevice& pDev, Point Offset, bool isCaretVisible); - bool IsAtTailOfBracket(SmBracketType eBracketType, SmBraceNode** ppBraceNode = nullptr) const; + bool IsAtTailOfBracket(SmBracketType eBracketType, SmBraceNode** ppBraceNode) const; void MoveAfterBracket(SmBraceNode* pBraceNode); private: @@ -257,7 +257,7 @@ private: * that includes pLine! * This method also deletes SmErrorNode's as they're just meta info in the line. */ - static SmNodeList* LineToList(SmStructureNode* pLine, SmNodeList* pList = new SmNodeList()); + static SmNodeList* LineToList(SmStructureNode* pLine, SmNodeList* pList); /** Auxiliary function for calling LineToList on a node * diff --git a/stoc/source/typeconv/convert.cxx b/stoc/source/typeconv/convert.cxx index 10d0ec539279..0565f15abe88 100644 --- a/stoc/source/typeconv/convert.cxx +++ b/stoc/source/typeconv/convert.cxx @@ -244,7 +244,7 @@ class TypeConverter_Impl : public WeakImplHelper< XTypeConverter, XServiceInfo > { // ...misc helpers... static sal_Int64 toHyper( - const Any& rAny, sal_Int64 min = SAL_INT64_MIN, sal_uInt64 max = SAL_UINT64_MAX ) + const Any& rAny, sal_Int64 min, sal_uInt64 max = SAL_UINT64_MAX ) throw( CannotConvertException ); static double toDouble( const Any& rAny, double min = -DBL_MAX, double max = DBL_MAX ) throw( CannotConvertException ); diff --git a/svgio/inc/svganode.hxx b/svgio/inc/svganode.hxx index ac07032f7adf..20fd1b2960cc 100644 --- a/svgio/inc/svganode.hxx +++ b/svgio/inc/svganode.hxx @@ -48,7 +48,7 @@ namespace svgio /// transform content const basegfx::B2DHomMatrix* getTransform() const { return mpaTransform; } - void setTransform(const basegfx::B2DHomMatrix* pMatrix = nullptr) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); } + void setTransform(const basegfx::B2DHomMatrix* pMatrix) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); } }; } // end of namespace svgreader } // end of namespace svgio diff --git a/svgio/inc/svgcharacternode.hxx b/svgio/inc/svgcharacternode.hxx index 1025617e5c27..c06299904ba9 100644 --- a/svgio/inc/svgcharacternode.hxx +++ b/svgio/inc/svgcharacternode.hxx @@ -68,7 +68,7 @@ namespace svgio /// TextLength content const SvgNumber& getTextLength() const { return maTextLength; } - void setTextLength(const SvgNumber& rTextLength = SvgNumber()) { maTextLength = rTextLength; } + void setTextLength(const SvgNumber& rTextLength) { maTextLength = rTextLength; } /// LengthAdjust content bool getLengthAdjust() const { return mbLengthAdjust; } diff --git a/svgio/inc/svgcirclenode.hxx b/svgio/inc/svgcirclenode.hxx index 99f661dc53d4..f9e6011615b7 100644 --- a/svgio/inc/svgcirclenode.hxx +++ b/svgio/inc/svgcirclenode.hxx @@ -51,19 +51,19 @@ namespace svgio /// Cx content, set if found in current context const SvgNumber& getCx() const { return maCx; } - void setCx(const SvgNumber& rCx = SvgNumber()) { maCx = rCx; } + void setCx(const SvgNumber& rCx) { maCx = rCx; } /// Cy content, set if found in current context const SvgNumber& getCy() const { return maCy; } - void setCy(const SvgNumber& rCy = SvgNumber()) { maCy = rCy; } + void setCy(const SvgNumber& rCy) { maCy = rCy; } /// R content, set if found in current context const SvgNumber& getR() const { return maR; } - void setR(const SvgNumber& rR = SvgNumber()) { maR = rR; } + void setR(const SvgNumber& rR) { maR = rR; } /// transform content, set if found in current context const basegfx::B2DHomMatrix* getTransform() const { return mpaTransform; } - void setTransform(const basegfx::B2DHomMatrix* pMatrix = nullptr) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); } + void setTransform(const basegfx::B2DHomMatrix* pMatrix) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); } }; } // end of namespace svgreader } // end of namespace svgio diff --git a/svgio/inc/svgclippathnode.hxx b/svgio/inc/svgclippathnode.hxx index 9bd7504f8183..558d5bd36180 100644 --- a/svgio/inc/svgclippathnode.hxx +++ b/svgio/inc/svgclippathnode.hxx @@ -58,7 +58,7 @@ namespace svgio /// transform content const basegfx::B2DHomMatrix* getTransform() const { return mpaTransform; } - void setTransform(const basegfx::B2DHomMatrix* pMatrix = nullptr) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); } + void setTransform(const basegfx::B2DHomMatrix* pMatrix) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); } }; } // end of namespace svgreader } // end of namespace svgio diff --git a/svgio/inc/svgellipsenode.hxx b/svgio/inc/svgellipsenode.hxx index 4e51cff871ec..52a7a84f867e 100644 --- a/svgio/inc/svgellipsenode.hxx +++ b/svgio/inc/svgellipsenode.hxx @@ -52,23 +52,23 @@ namespace svgio /// Cx content, set if found in current context const SvgNumber& getCx() const { return maCx; } - void setCx(const SvgNumber& rCx = SvgNumber()) { maCx = rCx; } + void setCx(const SvgNumber& rCx) { maCx = rCx; } /// Cy content, set if found in current context const SvgNumber& getCy() const { return maCy; } - void setCy(const SvgNumber& rCy = SvgNumber()) { maCy = rCy; } + void setCy(const SvgNumber& rCy) { maCy = rCy; } /// Rx content, set if found in current context const SvgNumber& getRx() const { return maRx; } - void setRx(const SvgNumber& rRx = SvgNumber()) { maRx = rRx; } + void setRx(const SvgNumber& rRx) { maRx = rRx; } /// Ry content, set if found in current context const SvgNumber& getRy() const { return maRy; } - void setRy(const SvgNumber& rRy = SvgNumber()) { maRy = rRy; } + void setRy(const SvgNumber& rRy) { maRy = rRy; } /// transform content, set if found in current context const basegfx::B2DHomMatrix* getTransform() const { return mpaTransform; } - void setTransform(const basegfx::B2DHomMatrix* pMatrix = nullptr) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); } + void setTransform(const basegfx::B2DHomMatrix* pMatrix) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); } }; } // end of namespace svgreader } // end of namespace svgio diff --git a/svgio/inc/svggnode.hxx b/svgio/inc/svggnode.hxx index 9eb4e022d3d9..a97f48fb69ca 100644 --- a/svgio/inc/svggnode.hxx +++ b/svgio/inc/svggnode.hxx @@ -49,7 +49,7 @@ namespace svgio /// transform content const basegfx::B2DHomMatrix* getTransform() const { return mpaTransform; } - void setTransform(const basegfx::B2DHomMatrix* pMatrix = nullptr) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); } + void setTransform(const basegfx::B2DHomMatrix* pMatrix) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); } }; } // end of namespace svgreader } // end of namespace svgio diff --git a/svgio/inc/svggradientnode.hxx b/svgio/inc/svggradientnode.hxx index 5e2bea70317b..b453f3b7f175 100644 --- a/svgio/inc/svggradientnode.hxx +++ b/svgio/inc/svggradientnode.hxx @@ -76,39 +76,39 @@ namespace svgio /// x1 content const SvgNumber getX1() const; - void setX1(const SvgNumber& rX1 = SvgNumber()) { maX1 = rX1; } + void setX1(const SvgNumber& rX1) { maX1 = rX1; } /// y1 content const SvgNumber getY1() const; - void setY1(const SvgNumber& rY1 = SvgNumber()) { maY1 = rY1; } + void setY1(const SvgNumber& rY1) { maY1 = rY1; } /// x2 content const SvgNumber getX2() const; - void setX2(const SvgNumber& rX2 = SvgNumber()) { maX2 = rX2; } + void setX2(const SvgNumber& rX2) { maX2 = rX2; } /// y2 content const SvgNumber getY2() const; - void setY2(const SvgNumber& rY2 = SvgNumber()) { maY2 = rY2; } + void setY2(const SvgNumber& rY2) { maY2 = rY2; } /// Cx content const SvgNumber getCx() const; - void setCx(const SvgNumber& rCx = SvgNumber()) { maCx = rCx; } + void setCx(const SvgNumber& rCx) { maCx = rCx; } /// Cy content const SvgNumber getCy() const; - void setCy(const SvgNumber& rCy = SvgNumber()) { maCy = rCy; } + void setCy(const SvgNumber& rCy) { maCy = rCy; } /// R content const SvgNumber getR() const; - void setR(const SvgNumber& rR = SvgNumber()) { maR = rR; } + void setR(const SvgNumber& rR) { maR = rR; } /// Fx content const SvgNumber* getFx() const; - void setFx(const SvgNumber& rFx = SvgNumber()) { maFx = rFx; } + void setFx(const SvgNumber& rFx) { maFx = rFx; } /// Fy content const SvgNumber* getFy() const; - void setFy(const SvgNumber& rFy = SvgNumber()) { maFy = rFy; } + void setFy(const SvgNumber& rFy) { maFy = rFy; } /// gradientUnits content SvgUnits getGradientUnits() const { return maGradientUnits; } @@ -120,7 +120,7 @@ namespace svgio /// transform content, set if found in current context const basegfx::B2DHomMatrix* getGradientTransform() const; - void setGradientTransform(const basegfx::B2DHomMatrix* pMatrix = nullptr); + void setGradientTransform(const basegfx::B2DHomMatrix* pMatrix); }; } // end of namespace svgreader } // end of namespace svgio diff --git a/svgio/inc/svggradientstopnode.hxx b/svgio/inc/svggradientstopnode.hxx index d25898e96c06..1804f10c3016 100644 --- a/svgio/inc/svggradientstopnode.hxx +++ b/svgio/inc/svggradientstopnode.hxx @@ -47,7 +47,7 @@ namespace svgio /// offset content const SvgNumber& getOffset() const { return maOffset; } - void setOffset(const SvgNumber& rOffset = SvgNumber()) { maOffset = rOffset; } + void setOffset(const SvgNumber& rOffset) { maOffset = rOffset; } }; } // end of namespace svgreader } // end of namespace svgio diff --git a/svgio/inc/svgimagenode.hxx b/svgio/inc/svgimagenode.hxx index f723d147ecf3..d4dbdcc209ab 100644 --- a/svgio/inc/svgimagenode.hxx +++ b/svgio/inc/svgimagenode.hxx @@ -59,27 +59,27 @@ namespace svgio /// SvgAspectRatio content const SvgAspectRatio& getSvgAspectRatio() const { return maSvgAspectRatio; } - void setSvgAspectRatio(const SvgAspectRatio& rSvgAspectRatio = SvgAspectRatio()) { maSvgAspectRatio = rSvgAspectRatio; } + void setSvgAspectRatio(const SvgAspectRatio& rSvgAspectRatio) { maSvgAspectRatio = rSvgAspectRatio; } /// transform content, set if found in current context const basegfx::B2DHomMatrix* getTransform() const { return mpaTransform; } - void setTransform(const basegfx::B2DHomMatrix* pMatrix = nullptr) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); } + void setTransform(const basegfx::B2DHomMatrix* pMatrix) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); } /// x content, set if found in current context const SvgNumber& getX() const { return maX; } - void setX(const SvgNumber& rX = SvgNumber()) { maX = rX; } + void setX(const SvgNumber& rX) { maX = rX; } /// y content, set if found in current context const SvgNumber& getY() const { return maY; } - void setY(const SvgNumber& rY = SvgNumber()) { maY = rY; } + void setY(const SvgNumber& rY) { maY = rY; } /// width content, set if found in current context const SvgNumber& getWidth() const { return maWidth; } - void setWidth(const SvgNumber& rWidth = SvgNumber()) { maWidth = rWidth; } + void setWidth(const SvgNumber& rWidth) { maWidth = rWidth; } /// height content, set if found in current context const SvgNumber& getHeight() const { return maHeight; } - void setHeight(const SvgNumber& rHeight = SvgNumber()) { maHeight = rHeight; } + void setHeight(const SvgNumber& rHeight) { maHeight = rHeight; } }; } // end of namespace svgreader } // end of namespace svgio diff --git a/svgio/inc/svglinenode.hxx b/svgio/inc/svglinenode.hxx index 336c2cd4ca80..004e2410f6dd 100644 --- a/svgio/inc/svglinenode.hxx +++ b/svgio/inc/svglinenode.hxx @@ -52,23 +52,23 @@ namespace svgio /// X1 content, set if found in current context const SvgNumber& getX1() const { return maX1; } - void setX1(const SvgNumber& rX1 = SvgNumber()) { maX1 = rX1; } + void setX1(const SvgNumber& rX1) { maX1 = rX1; } /// Y1 content, set if found in current context const SvgNumber& getY1() const { return maY1; } - void setY1(const SvgNumber& rY1 = SvgNumber()) { maY1 = rY1; } + void setY1(const SvgNumber& rY1) { maY1 = rY1; } /// X2 content, set if found in current context const SvgNumber& getX2() const { return maX2; } - void setX2(const SvgNumber& rX2 = SvgNumber()) { maX2 = rX2; } + void setX2(const SvgNumber& rX2) { maX2 = rX2; } /// Y2 content, set if found in current context const SvgNumber& getY2() const { return maY2; } - void setY2(const SvgNumber& rY2 = SvgNumber()) { maY2 = rY2; } + void setY2(const SvgNumber& rY2) { maY2 = rY2; } /// transform content, set if found in current context const basegfx::B2DHomMatrix* getTransform() const { return mpaTransform; } - void setTransform(const basegfx::B2DHomMatrix* pMatrix = nullptr) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); } + void setTransform(const basegfx::B2DHomMatrix* pMatrix) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); } }; } // end of namespace svgreader } // end of namespace svgio diff --git a/svgio/inc/svgmarkernode.hxx b/svgio/inc/svgmarkernode.hxx index aa61806f1a10..68cc68eedd52 100644 --- a/svgio/inc/svgmarkernode.hxx +++ b/svgio/inc/svgmarkernode.hxx @@ -73,19 +73,19 @@ namespace svgio /// viewBox content const basegfx::B2DRange* getViewBox() const { return mpViewBox; } - void setViewBox(const basegfx::B2DRange* pViewBox = nullptr) { if(mpViewBox) delete mpViewBox; mpViewBox = nullptr; if(pViewBox) mpViewBox = new basegfx::B2DRange(*pViewBox); } + void setViewBox(const basegfx::B2DRange* pViewBox) { if(mpViewBox) delete mpViewBox; mpViewBox = nullptr; if(pViewBox) mpViewBox = new basegfx::B2DRange(*pViewBox); } /// SvgAspectRatio content const SvgAspectRatio& getSvgAspectRatio() const { return maSvgAspectRatio; } - void setSvgAspectRatio(const SvgAspectRatio& rSvgAspectRatio = SvgAspectRatio()) { maSvgAspectRatio = rSvgAspectRatio; } + void setSvgAspectRatio(const SvgAspectRatio& rSvgAspectRatio) { maSvgAspectRatio = rSvgAspectRatio; } /// RefX content, set if found in current context const SvgNumber& getRefX() const { return maRefX; } - void setRefX(const SvgNumber& rRefX = SvgNumber()) { maRefX = rRefX; } + void setRefX(const SvgNumber& rRefX) { maRefX = rRefX; } /// RefY content, set if found in current context const SvgNumber& getRefY() const { return maRefY; } - void setRefY(const SvgNumber& rRefY = SvgNumber()) { maRefY = rRefY; } + void setRefY(const SvgNumber& rRefY) { maRefY = rRefY; } /// MarkerUnits content MarkerUnits getMarkerUnits() const { return maMarkerUnits; } @@ -93,15 +93,15 @@ namespace svgio /// MarkerWidth content, set if found in current context const SvgNumber& getMarkerWidth() const { return maMarkerWidth; } - void setMarkerWidth(const SvgNumber& rMarkerWidth = SvgNumber()) { maMarkerWidth = rMarkerWidth; } + void setMarkerWidth(const SvgNumber& rMarkerWidth) { maMarkerWidth = rMarkerWidth; } /// MarkerHeight content, set if found in current context const SvgNumber& getMarkerHeight() const { return maMarkerHeight; } - void setMarkerHeight(const SvgNumber& rMarkerHeight = SvgNumber()) { maMarkerHeight = rMarkerHeight; } + void setMarkerHeight(const SvgNumber& rMarkerHeight) { maMarkerHeight = rMarkerHeight; } /// Angle content, set if found in current context double getAngle() const { return mfAngle; } - void setAngle(double fAngle = 0.0) { mfAngle = fAngle; mbOrientAuto = false; } + void setAngle(double fAngle) { mfAngle = fAngle; mbOrientAuto = false; } /// OrientAuto content, set if found in current context bool getOrientAuto() const { return mbOrientAuto; } diff --git a/svgio/inc/svgmasknode.hxx b/svgio/inc/svgmasknode.hxx index 8e04fffc38f4..0545028ba254 100644 --- a/svgio/inc/svgmasknode.hxx +++ b/svgio/inc/svgmasknode.hxx @@ -59,23 +59,23 @@ namespace svgio /// x content, set if found in current context const SvgNumber& getX() const { return maX; } - void setX(const SvgNumber& rX = SvgNumber()) { maX = rX; } + void setX(const SvgNumber& rX) { maX = rX; } /// y content, set if found in current context const SvgNumber& getY() const { return maY; } - void setY(const SvgNumber& rY = SvgNumber()) { maY = rY; } + void setY(const SvgNumber& rY) { maY = rY; } /// width content, set if found in current context const SvgNumber& getWidth() const { return maWidth; } - void setWidth(const SvgNumber& rWidth = SvgNumber()) { maWidth = rWidth; } + void setWidth(const SvgNumber& rWidth) { maWidth = rWidth; } /// height content, set if found in current context const SvgNumber& getHeight() const { return maHeight; } - void setHeight(const SvgNumber& rHeight = SvgNumber()) { maHeight = rHeight; } + void setHeight(const SvgNumber& rHeight) { maHeight = rHeight; } /// transform content const basegfx::B2DHomMatrix* getTransform() const { return mpaTransform; } - void setTransform(const basegfx::B2DHomMatrix* pMatrix = nullptr) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); } + void setTransform(const basegfx::B2DHomMatrix* pMatrix) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); } /// MaskUnits content SvgUnits getMaskUnits() const { return maMaskUnits; } diff --git a/svgio/inc/svgnode.hxx b/svgio/inc/svgnode.hxx index 9df8419ad6f4..65be1f391db4 100644 --- a/svgio/inc/svgnode.hxx +++ b/svgio/inc/svgnode.hxx @@ -165,19 +165,19 @@ namespace svgio /// Id access const OUString* getId() const { return mpId; } - void setId(const OUString* pfId = nullptr); + void setId(const OUString* pfId); /// Class access const OUString* getClass() const { return mpClass; } - void setClass(const OUString* pfClass = nullptr); + void setClass(const OUString* pfClass); /// XmlSpace access XmlSpace getXmlSpace() const; - void setXmlSpace(XmlSpace eXmlSpace = XmlSpace_notset) { maXmlSpace = eXmlSpace; } + void setXmlSpace(XmlSpace eXmlSpace) { maXmlSpace = eXmlSpace; } /// Display access #i121656# Display getDisplay() const { return maDisplay; } - void setDisplay(Display eDisplay = Display_inherit) { maDisplay = eDisplay; } + void setDisplay(Display eDisplay) { maDisplay = eDisplay; } /// alternative parent void setAlternativeParent(const SvgNode* pAlternativeParent = nullptr) { mpAlternativeParent = pAlternativeParent; } diff --git a/svgio/inc/svgpathnode.hxx b/svgio/inc/svgpathnode.hxx index 2cfa01ca21ab..daa5985cd9fa 100644 --- a/svgio/inc/svgpathnode.hxx +++ b/svgio/inc/svgpathnode.hxx @@ -52,15 +52,15 @@ namespace svgio /// path content, set if found in current context const basegfx::B2DPolyPolygon* getPath() const { return mpPolyPolygon; } - void setPath(const basegfx::B2DPolyPolygon* pPath = nullptr) { if(mpPolyPolygon) delete mpPolyPolygon; mpPolyPolygon = nullptr; if(pPath) mpPolyPolygon = new basegfx::B2DPolyPolygon(*pPath); } + void setPath(const basegfx::B2DPolyPolygon* pPath) { if(mpPolyPolygon) delete mpPolyPolygon; mpPolyPolygon = nullptr; if(pPath) mpPolyPolygon = new basegfx::B2DPolyPolygon(*pPath); } /// transform content, set if found in current context const basegfx::B2DHomMatrix* getTransform() const { return mpaTransform; } - void setTransform(const basegfx::B2DHomMatrix* pMatrix = nullptr) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); } + void setTransform(const basegfx::B2DHomMatrix* pMatrix) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); } /// PathLength content const SvgNumber& getPathLength() const { return maPathLength; } - void setPathLength(const SvgNumber& rPathLength = SvgNumber()) { maPathLength = rPathLength; } + void setPathLength(const SvgNumber& rPathLength) { maPathLength = rPathLength; } }; } // end of namespace svgreader } // end of namespace svgio diff --git a/svgio/inc/svgpatternnode.hxx b/svgio/inc/svgpatternnode.hxx index cf8165996b8c..3bb8acc055c8 100644 --- a/svgio/inc/svgpatternnode.hxx +++ b/svgio/inc/svgpatternnode.hxx @@ -76,27 +76,27 @@ namespace svgio /// viewBox content const basegfx::B2DRange* getViewBox() const; - void setViewBox(const basegfx::B2DRange* pViewBox = nullptr) { if(mpViewBox) delete mpViewBox; mpViewBox = nullptr; if(pViewBox) mpViewBox = new basegfx::B2DRange(*pViewBox); } + void setViewBox(const basegfx::B2DRange* pViewBox) { if(mpViewBox) delete mpViewBox; mpViewBox = nullptr; if(pViewBox) mpViewBox = new basegfx::B2DRange(*pViewBox); } /// SvgAspectRatio content const SvgAspectRatio& getSvgAspectRatio() const; - void setSvgAspectRatio(const SvgAspectRatio& rSvgAspectRatio = SvgAspectRatio()) { maSvgAspectRatio = rSvgAspectRatio; } + void setSvgAspectRatio(const SvgAspectRatio& rSvgAspectRatio) { maSvgAspectRatio = rSvgAspectRatio; } /// X content, set if found in current context const SvgNumber& getX() const; - void setX(const SvgNumber& rX = SvgNumber()) { maX = rX; } + void setX(const SvgNumber& rX) { maX = rX; } /// Y content, set if found in current context const SvgNumber& getY() const; - void setY(const SvgNumber& rY = SvgNumber()) { maY = rY; } + void setY(const SvgNumber& rY) { maY = rY; } /// Width content, set if found in current context const SvgNumber& getWidth() const; - void setWidth(const SvgNumber& rWidth = SvgNumber()) { maWidth = rWidth; } + void setWidth(const SvgNumber& rWidth) { maWidth = rWidth; } /// Height content, set if found in current context const SvgNumber& getHeight() const; - void setHeight(const SvgNumber& rHeight = SvgNumber()) { maHeight = rHeight; } + void setHeight(const SvgNumber& rHeight) { maHeight = rHeight; } /// PatternUnits content const SvgUnits* getPatternUnits() const; @@ -108,7 +108,7 @@ namespace svgio /// PatternTransform content const basegfx::B2DHomMatrix* getPatternTransform() const; - void setPatternTransform(const basegfx::B2DHomMatrix* pMatrix = nullptr) { if(mpaPatternTransform) delete mpaPatternTransform; mpaPatternTransform = nullptr; if(pMatrix) mpaPatternTransform = new basegfx::B2DHomMatrix(*pMatrix); } + void setPatternTransform(const basegfx::B2DHomMatrix* pMatrix) { if(mpaPatternTransform) delete mpaPatternTransform; mpaPatternTransform = nullptr; if(pMatrix) mpaPatternTransform = new basegfx::B2DHomMatrix(*pMatrix); } }; } // end of namespace svgreader diff --git a/svgio/inc/svgpolynode.hxx b/svgio/inc/svgpolynode.hxx index 91340be62d46..6c9a605ee2fb 100644 --- a/svgio/inc/svgpolynode.hxx +++ b/svgio/inc/svgpolynode.hxx @@ -57,11 +57,11 @@ namespace svgio /// Polygon content, set if found in current context const basegfx::B2DPolygon* getPolygon() const { return mpPolygon; } - void setPolygon(const basegfx::B2DPolygon* pPolygon = nullptr) { if(mpPolygon) delete mpPolygon; mpPolygon = nullptr; if(pPolygon) mpPolygon = new basegfx::B2DPolygon(*pPolygon); } + void setPolygon(const basegfx::B2DPolygon* pPolygon) { if(mpPolygon) delete mpPolygon; mpPolygon = nullptr; if(pPolygon) mpPolygon = new basegfx::B2DPolygon(*pPolygon); } /// transform content, set if found in current context const basegfx::B2DHomMatrix* getTransform() const { return mpaTransform; } - void setTransform(const basegfx::B2DHomMatrix* pMatrix = nullptr) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); } + void setTransform(const basegfx::B2DHomMatrix* pMatrix) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); } }; } // end of namespace svgreader } // end of namespace svgio diff --git a/svgio/inc/svgrectnode.hxx b/svgio/inc/svgrectnode.hxx index a16f36949b73..8eadc61c3a3d 100644 --- a/svgio/inc/svgrectnode.hxx +++ b/svgio/inc/svgrectnode.hxx @@ -54,31 +54,31 @@ namespace svgio /// x content, set if found in current context const SvgNumber& getX() const { return maX; } - void setX(const SvgNumber& rX = SvgNumber()) { maX = rX; } + void setX(const SvgNumber& rX) { maX = rX; } /// y content, set if found in current context const SvgNumber& getY() const { return maY; } - void setY(const SvgNumber& rY = SvgNumber()) { maY = rY; } + void setY(const SvgNumber& rY) { maY = rY; } /// width content, set if found in current context const SvgNumber& getWidth() const { return maWidth; } - void setWidth(const SvgNumber& rWidth = SvgNumber()) { maWidth = rWidth; } + void setWidth(const SvgNumber& rWidth) { maWidth = rWidth; } /// height content, set if found in current context const SvgNumber& getHeight() const { return maHeight; } - void setHeight(const SvgNumber& rHeight = SvgNumber()) { maHeight = rHeight; } + void setHeight(const SvgNumber& rHeight) { maHeight = rHeight; } /// Rx content, set if found in current context const SvgNumber& getRx() const { return maRx; } - void setRx(const SvgNumber& rRx = SvgNumber()) { maRx = rRx; } + void setRx(const SvgNumber& rRx) { maRx = rRx; } /// Ry content, set if found in current context const SvgNumber& getRy() const { return maRy; } - void setRy(const SvgNumber& rRy = SvgNumber()) { maRy = rRy; } + void setRy(const SvgNumber& rRy) { maRy = rRy; } /// transform content, set if found in current context const basegfx::B2DHomMatrix* getTransform() const { return mpaTransform; } - void setTransform(const basegfx::B2DHomMatrix* pMatrix = nullptr) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); } + void setTransform(const basegfx::B2DHomMatrix* pMatrix) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); } }; } // end of namespace svgreader } // end of namespace svgio diff --git a/svgio/inc/svgstyleattributes.hxx b/svgio/inc/svgstyleattributes.hxx index ba8cb553c763..d0bc8cb6f526 100644 --- a/svgio/inc/svgstyleattributes.hxx +++ b/svgio/inc/svgstyleattributes.hxx @@ -327,11 +327,11 @@ namespace svgio /// stroke-width content SvgNumber getStrokeWidth() const; - void setStrokeWidth(const SvgNumber& rStrokeWidth = SvgNumber()) { maStrokeWidth = rStrokeWidth; } + void setStrokeWidth(const SvgNumber& rStrokeWidth) { maStrokeWidth = rStrokeWidth; } /// stop opacity content SvgNumber getStopOpacity() const; - void setStopOpacity(const SvgNumber& rStopOpacity = SvgNumber()) { maStopOpacity = rStopOpacity; } + void setStopOpacity(const SvgNumber& rStopOpacity) { maStopOpacity = rStopOpacity; } /// access to evtl. set fill gradient const SvgGradientNode* getSvgGradientNodeFill() const; @@ -351,14 +351,14 @@ namespace svgio /// fill opacity content SvgNumber getFillOpacity() const; - void setFillOpacity(const SvgNumber& rFillOpacity = SvgNumber()) { maFillOpacity = rFillOpacity; } + void setFillOpacity(const SvgNumber& rFillOpacity) { maFillOpacity = rFillOpacity; } /// fill rule content FillRule getFillRule() const; /// fill StrokeDasharray content const SvgNumberVector& getStrokeDasharray() const; - void setStrokeDasharray(const SvgNumberVector& rStrokeDasharray = SvgNumberVector()) { maStrokeDasharray = rStrokeDasharray; } + void setStrokeDasharray(const SvgNumberVector& rStrokeDasharray) { maStrokeDasharray = rStrokeDasharray; } /// #121221# StrokeDasharray needs a set state, it *may* be set to empty by purpose bool getStrokeDasharraySet() const { return mbStrokeDasharraySet; } @@ -366,60 +366,60 @@ namespace svgio /// StrokeDashOffset content SvgNumber getStrokeDashOffset() const; - void setStrokeDashOffset(const SvgNumber& rStrokeDashOffset = SvgNumber()) { maStrokeDashOffset = rStrokeDashOffset; } + void setStrokeDashOffset(const SvgNumber& rStrokeDashOffset) { maStrokeDashOffset = rStrokeDashOffset; } /// StrokeLinecap content StrokeLinecap getStrokeLinecap() const; - void setStrokeLinecap(const StrokeLinecap aStrokeLinecap = StrokeLinecap_notset) { maStrokeLinecap = aStrokeLinecap; } + void setStrokeLinecap(const StrokeLinecap aStrokeLinecap) { maStrokeLinecap = aStrokeLinecap; } /// StrokeLinejoin content StrokeLinejoin getStrokeLinejoin() const; - void setStrokeLinejoin(const StrokeLinejoin aStrokeLinejoin = StrokeLinejoin_notset) { maStrokeLinejoin = aStrokeLinejoin; } + void setStrokeLinejoin(const StrokeLinejoin aStrokeLinejoin) { maStrokeLinejoin = aStrokeLinejoin; } /// StrokeMiterLimit content SvgNumber getStrokeMiterLimit() const; - void setStrokeMiterLimit(const SvgNumber& rStrokeMiterLimit = SvgNumber(4.0,Unit_none,false)) { maStrokeMiterLimit = rStrokeMiterLimit; } + void setStrokeMiterLimit(const SvgNumber& rStrokeMiterLimit) { maStrokeMiterLimit = rStrokeMiterLimit; } /// StrokeOpacity content SvgNumber getStrokeOpacity() const; - void setStrokeOpacity(const SvgNumber& rStrokeOpacity = SvgNumber()) { maStrokeOpacity = rStrokeOpacity; } + void setStrokeOpacity(const SvgNumber& rStrokeOpacity) { maStrokeOpacity = rStrokeOpacity; } /// Font content const SvgStringVector& getFontFamily() const; - void setFontFamily(const SvgStringVector& rSvgStringVector = SvgStringVector()) { maFontFamily = rSvgStringVector; } + void setFontFamily(const SvgStringVector& rSvgStringVector) { maFontFamily = rSvgStringVector; } /// FontSize content - void setFontSize(const FontSize aFontSize = FontSize_notset) { maFontSize = aFontSize; } - void setFontSizeNumber(const SvgNumber& rFontSize = SvgNumber()) { maFontSizeNumber = rFontSize; } + void setFontSize(const FontSize aFontSize) { maFontSize = aFontSize; } + void setFontSizeNumber(const SvgNumber& rFontSize) { maFontSizeNumber = rFontSize; } SvgNumber getFontSizeNumber() const; /// FontStretch content FontStretch getFontStretch() const; - void setFontStretch(const FontStretch aFontStretch = FontStretch_notset) { maFontStretch = aFontStretch; } + void setFontStretch(const FontStretch aFontStretch) { maFontStretch = aFontStretch; } /// FontStyle content FontStyle getFontStyle() const; - void setFontStyle(const FontStyle aFontStyle = FontStyle_notset) { maFontStyle = aFontStyle; } + void setFontStyle(const FontStyle aFontStyle) { maFontStyle = aFontStyle; } /// FontVariant content - void setFontVariant(const FontVariant aFontVariant = FontVariant_notset) { maFontVariant = aFontVariant; } + void setFontVariant(const FontVariant aFontVariant) { maFontVariant = aFontVariant; } /// FontWeight content FontWeight getFontWeight() const; - void setFontWeight(const FontWeight aFontWeight = FontWeight_notset) { maFontWeight = aFontWeight; } + void setFontWeight(const FontWeight aFontWeight) { maFontWeight = aFontWeight; } /// TextAlign content TextAlign getTextAlign() const; - void setTextAlign(const TextAlign aTextAlign = TextAlign_notset) { maTextAlign = aTextAlign; } + void setTextAlign(const TextAlign aTextAlign) { maTextAlign = aTextAlign; } /// TextDecoration content const SvgStyleAttributes* getTextDecorationDefiningSvgStyleAttributes() const; TextDecoration getTextDecoration() const; - void setTextDecoration(const TextDecoration aTextDecoration = TextDecoration_notset) { maTextDecoration = aTextDecoration; } + void setTextDecoration(const TextDecoration aTextDecoration) { maTextDecoration = aTextDecoration; } /// TextAnchor content TextAnchor getTextAnchor() const; - void setTextAnchor(const TextAnchor aTextAnchor = TextAnchor_notset) { maTextAnchor = aTextAnchor; } + void setTextAnchor(const TextAnchor aTextAnchor) { maTextAnchor = aTextAnchor; } /// Color content const basegfx::BColor* getColor() const; @@ -430,11 +430,11 @@ namespace svgio /// Opacity content SvgNumber getOpacity() const; - void setOpacity(const SvgNumber& rOpacity = SvgNumber()) { maOpacity = rOpacity; } + void setOpacity(const SvgNumber& rOpacity) { maOpacity = rOpacity; } /// Visibility Visibility getVisibility() const; - void setVisibility(const Visibility aVisibility = Visibility_notset) { maVisibility = aVisibility; } + void setVisibility(const Visibility aVisibility) { maVisibility = aVisibility; } // Title content const OUString& getTitle() const { return maTitle; } @@ -467,7 +467,7 @@ namespace svgio // BaselineShift void setBaselineShift(const BaselineShift aBaselineShift) { maBaselineShift = aBaselineShift; } BaselineShift getBaselineShift() const { return maBaselineShift; } - void setBaselineShiftNumber(const SvgNumber& rBaselineShift = SvgNumber()) { maBaselineShiftNumber = rBaselineShift; } + void setBaselineShiftNumber(const SvgNumber& rBaselineShift) { maBaselineShiftNumber = rBaselineShift; } SvgNumber getBaselineShiftNumber() const; }; } // end of namespace svgreader diff --git a/svgio/inc/svgsvgnode.hxx b/svgio/inc/svgsvgnode.hxx index a256971b8719..18b9a1f571f5 100644 --- a/svgio/inc/svgsvgnode.hxx +++ b/svgio/inc/svgsvgnode.hxx @@ -71,30 +71,30 @@ namespace svgio /// viewBox content const basegfx::B2DRange* getViewBox() const { return mpViewBox; } - void setViewBox(const basegfx::B2DRange* pViewBox = nullptr) { if(mpViewBox) delete mpViewBox; mpViewBox = nullptr; if(pViewBox) mpViewBox = new basegfx::B2DRange(*pViewBox); } + void setViewBox(const basegfx::B2DRange* pViewBox) { if(mpViewBox) delete mpViewBox; mpViewBox = nullptr; if(pViewBox) mpViewBox = new basegfx::B2DRange(*pViewBox); } /// SvgAspectRatio content const SvgAspectRatio& getSvgAspectRatio() const { return maSvgAspectRatio; } - void setSvgAspectRatio(const SvgAspectRatio& rSvgAspectRatio = SvgAspectRatio()) { maSvgAspectRatio = rSvgAspectRatio; } + void setSvgAspectRatio(const SvgAspectRatio& rSvgAspectRatio) { maSvgAspectRatio = rSvgAspectRatio; } /// x content const SvgNumber& getX() const { return maX; } - void setX(const SvgNumber& rX = SvgNumber()) { maX = rX; } + void setX(const SvgNumber& rX) { maX = rX; } /// y content const SvgNumber& getY() const { return maY; } - void setY(const SvgNumber& rY = SvgNumber()) { maY = rY; } + void setY(const SvgNumber& rY) { maY = rY; } /// width content const SvgNumber& getWidth() const { return maWidth; } - void setWidth(const SvgNumber& rWidth = SvgNumber()) { maWidth = rWidth; } + void setWidth(const SvgNumber& rWidth) { maWidth = rWidth; } /// height content const SvgNumber& getHeight() const { return maHeight; } - void setHeight(const SvgNumber& rHeight = SvgNumber()) { maHeight = rHeight; } + void setHeight(const SvgNumber& rHeight) { maHeight = rHeight; } /// version content - void setVersion(const SvgNumber& rVersion = SvgNumber()) { maVersion = rVersion; } + void setVersion(const SvgNumber& rVersion) { maVersion = rVersion; } }; } // end of namespace svgreader } // end of namespace svgio diff --git a/svgio/inc/svgsymbolnode.hxx b/svgio/inc/svgsymbolnode.hxx index 1ec961673ada..d3d28480b495 100644 --- a/svgio/inc/svgsymbolnode.hxx +++ b/svgio/inc/svgsymbolnode.hxx @@ -46,10 +46,10 @@ namespace svgio virtual void parseAttribute(const OUString& rTokenName, SVGToken aSVGToken, const OUString& aContent) override; /// viewBox content - void setViewBox(const basegfx::B2DRange* pViewBox = nullptr) { if(mpViewBox) delete mpViewBox; mpViewBox = nullptr; if(pViewBox) mpViewBox = new basegfx::B2DRange(*pViewBox); } + void setViewBox(const basegfx::B2DRange* pViewBox) { if(mpViewBox) delete mpViewBox; mpViewBox = nullptr; if(pViewBox) mpViewBox = new basegfx::B2DRange(*pViewBox); } /// SvgAspectRatio content - void setSvgAspectRatio(const SvgAspectRatio& rSvgAspectRatio = SvgAspectRatio()) { maSvgAspectRatio = rSvgAspectRatio; } + void setSvgAspectRatio(const SvgAspectRatio& rSvgAspectRatio) { maSvgAspectRatio = rSvgAspectRatio; } }; } // end of namespace svgreader } // end of namespace svgio diff --git a/svgio/inc/svgtextnode.hxx b/svgio/inc/svgtextnode.hxx index bea1fde1c328..cc679a7355e4 100644 --- a/svgio/inc/svgtextnode.hxx +++ b/svgio/inc/svgtextnode.hxx @@ -62,7 +62,7 @@ namespace svgio /// transform content, set if found in current context const basegfx::B2DHomMatrix* getTransform() const { return mpaTransform; } - void setTransform(const basegfx::B2DHomMatrix* pMatrix = nullptr) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); } + void setTransform(const basegfx::B2DHomMatrix* pMatrix) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); } /// access to SvgTextPositions const SvgTextPositions& getSvgTextPositions() const { return maSvgTextPositions; } diff --git a/svgio/inc/svgtextpathnode.hxx b/svgio/inc/svgtextpathnode.hxx index 33c0e0a87d03..2c974856d6a5 100644 --- a/svgio/inc/svgtextpathnode.hxx +++ b/svgio/inc/svgtextpathnode.hxx @@ -61,7 +61,7 @@ namespace svgio /// StartOffset content const SvgNumber& getStartOffset() const { return maStartOffset; } - void setStartOffset(const SvgNumber& rStartOffset = SvgNumber()) { maStartOffset = rStartOffset; } + void setStartOffset(const SvgNumber& rStartOffset) { maStartOffset = rStartOffset; } /// Method content void setMethod(bool bNew) { mbMethod = bNew; } diff --git a/svgio/inc/svgusenode.hxx b/svgio/inc/svgusenode.hxx index 3807f6f121c2..3f5aba076ce2 100644 --- a/svgio/inc/svgusenode.hxx +++ b/svgio/inc/svgusenode.hxx @@ -56,21 +56,21 @@ namespace svgio /// transform content const basegfx::B2DHomMatrix* getTransform() const { return mpaTransform; } - void setTransform(const basegfx::B2DHomMatrix* pMatrix = nullptr) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); } + void setTransform(const basegfx::B2DHomMatrix* pMatrix) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); } /// x content const SvgNumber& getX() const { return maX; } - void setX(const SvgNumber& rX = SvgNumber()) { maX = rX; } + void setX(const SvgNumber& rX) { maX = rX; } /// y content const SvgNumber& getY() const { return maY; } - void setY(const SvgNumber& rY = SvgNumber()) { maY = rY; } + void setY(const SvgNumber& rY) { maY = rY; } /// width content - void setWidth(const SvgNumber& rWidth = SvgNumber()) { maWidth = rWidth; } + void setWidth(const SvgNumber& rWidth) { maWidth = rWidth; } /// height content - void setHeight(const SvgNumber& rHeight = SvgNumber()) { maHeight = rHeight; } + void setHeight(const SvgNumber& rHeight) { maHeight = rHeight; } }; } // end of namespace svgreader } // end of namespace svgio -- cgit