diff options
author | Noel Grandin <noel@peralex.com> | 2016-04-13 13:32:22 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-04-14 09:21:39 +0200 |
commit | 40f8d2566022140ca3f2d45d7cbd8b7ab51125ed (patch) | |
tree | 4a8bd6baf43f3789425ff8d7e988e7928942169f /include/svx/drawitem.hxx | |
parent | cb4015bb28dd7430efaaa523d04a155eb7e46305 (diff) |
loplugin:passstuffbyref in svx
Change-Id: I7d405830785cb12aaceb65d6ed03dda04aa90fd8
Diffstat (limited to 'include/svx/drawitem.hxx')
-rw-r--r-- | include/svx/drawitem.hxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/svx/drawitem.hxx b/include/svx/drawitem.hxx index 3cbcc729654b..64e94e9b7faf 100644 --- a/include/svx/drawitem.hxx +++ b/include/svx/drawitem.hxx @@ -46,7 +46,7 @@ public: virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override; virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override; - XColorListRef GetColorList() const { return pColorList; } + const XColorListRef& GetColorList() const { return pColorList; } }; class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxGradientListItem : public SfxPoolItem @@ -71,7 +71,7 @@ public: virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override; virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override; - XGradientListRef GetGradientList() const { return pGradientList; } + const XGradientListRef& GetGradientList() const { return pGradientList; } }; class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxHatchListItem : public SfxPoolItem @@ -95,7 +95,7 @@ public: virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override; virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override; - XHatchListRef GetHatchList() const { return pHatchList; } + const XHatchListRef& GetHatchList() const { return pHatchList; } }; class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxBitmapListItem : public SfxPoolItem @@ -120,7 +120,7 @@ public: virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override; virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override; - XBitmapListRef GetBitmapList() const { return pBitmapList; } + const XBitmapListRef& GetBitmapList() const { return pBitmapList; } }; class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxDashListItem : public SfxPoolItem @@ -145,7 +145,7 @@ public: virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override; virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override; - XDashListRef GetDashList() const { return pDashList; } + const XDashListRef& GetDashList() const { return pDashList; } }; class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxLineEndListItem : public SfxPoolItem @@ -170,7 +170,7 @@ public: virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override; virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override; - XLineEndListRef GetLineEndList() const { return pLineEndList; } + const XLineEndListRef& GetLineEndList() const { return pLineEndList; } }; #endif |