diff options
-rw-r--r-- | include/svl/cntwall.hxx | 2 | ||||
-rw-r--r-- | include/svl/globalnameitem.hxx | 2 | ||||
-rw-r--r-- | include/svl/zforlist.hxx | 2 | ||||
-rw-r--r-- | svl/source/inc/passwordcontainer.hxx | 2 | ||||
-rw-r--r-- | svl/source/numbers/zforlist.cxx | 2 |
5 files changed, 5 insertions, 5 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. diff --git a/svl/source/inc/passwordcontainer.hxx b/svl/source/inc/passwordcontainer.hxx index 55b7101d5f9a..884a451dcfc9 100644 --- a/svl/source/inc/passwordcontainer.hxx +++ b/svl/source/inc/passwordcontainer.hxx @@ -124,7 +124,7 @@ public: return *this; } - OUString GetUserName() const + const OUString& GetUserName() const { return m_aName; } diff --git a/svl/source/numbers/zforlist.cxx b/svl/source/numbers/zforlist.cxx index e7fcccc6f909..0fc4d3c71652 100644 --- a/svl/source/numbers/zforlist.cxx +++ b/svl/source/numbers/zforlist.cxx @@ -516,7 +516,7 @@ void SvNumberFormatter::ReplaceSystemCL( LanguageType eOldLanguage ) ImpGenerateAdditionalFormats( nCLOffset, aNumberFormatCode, true ); } -css::uno::Reference<css::uno::XComponentContext> SvNumberFormatter::GetComponentContext() const +const css::uno::Reference<css::uno::XComponentContext>& SvNumberFormatter::GetComponentContext() const { return m_xContext; } |