From fe8896bab01ccb595c993e54866a01f554b54f4f Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 13 Apr 2016 11:29:29 +0200 Subject: loplugin:passstuffbyref in svl Change-Id: I1434d96ae800d8e155262831472cf632d640b4c5 --- include/svl/cntwall.hxx | 2 +- include/svl/globalnameitem.hxx | 2 +- include/svl/zforlist.hxx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'include/svl') diff --git a/include/svl/cntwall.hxx b/include/svl/cntwall.hxx index 184cb4ca9847..cbea63600df7 100644 --- a/include/svl/cntwall.hxx +++ b/include/svl/cntwall.hxx @@ -57,7 +57,7 @@ public: void SetStyle( sal_uInt16 nStyle ) { _nStyle = nStyle; } const OUString& GetBitmapURL() const { return _aURL; } - Color GetColor() const { return _nColor; } + const Color& GetColor() const { return _nColor; } sal_uInt16 GetStyle() const { return _nStyle; } }; diff --git a/include/svl/globalnameitem.hxx b/include/svl/globalnameitem.hxx index 94011d088583..9547b4b64327 100644 --- a/include/svl/globalnameitem.hxx +++ b/include/svl/globalnameitem.hxx @@ -36,7 +36,7 @@ public: virtual bool operator==( const SfxPoolItem& ) const override; virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; - SvGlobalName GetValue() const { return m_aName; } + const SvGlobalName& GetValue() const { return m_aName; } virtual bool PutValue ( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override; diff --git a/include/svl/zforlist.hxx b/include/svl/zforlist.hxx index 2b98347b97b5..a18354fdf3b6 100644 --- a/include/svl/zforlist.hxx +++ b/include/svl/zforlist.hxx @@ -914,7 +914,7 @@ public: // new format codes are appended. void ReplaceSystemCL( LanguageType eOldLanguage ); - css::uno::Reference GetComponentContext() const; + const css::uno::Reference& GetComponentContext() const; //! The following method is not to be used from outside but must be //! public for the InputScanner. -- cgit