diff options
author | Noel Grandin <noel@peralex.com> | 2016-04-13 11:29:29 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-04-13 13:27:52 +0200 |
commit | fe8896bab01ccb595c993e54866a01f554b54f4f (patch) | |
tree | dac712df6f8aaaeaa863a84b0bc11b0ebd2a9061 /include/svl | |
parent | 523036daaddf466eee46183bbec9a71d45c48a41 (diff) |
loplugin:passstuffbyref in svl
Change-Id: I1434d96ae800d8e155262831472cf632d640b4c5
Diffstat (limited to 'include/svl')
-rw-r--r-- | include/svl/cntwall.hxx | 2 | ||||
-rw-r--r-- | include/svl/globalnameitem.hxx | 2 | ||||
-rw-r--r-- | include/svl/zforlist.hxx | 2 |
3 files changed, 3 insertions, 3 deletions
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<css::uno::XComponentContext> GetComponentContext() const; + const css::uno::Reference<css::uno::XComponentContext>& GetComponentContext() const; //! The following method is not to be used from outside but must be //! public for the InputScanner. |