From c83166ce7126b3c3c6aca8f6d2ab9cd9e16f5763 Mon Sep 17 00:00:00 2001 From: Noel Date: Mon, 25 Jan 2021 20:31:22 +0200 Subject: loplugin:passstuffbyref Change-Id: I330e0ab6c9955939dad313f9d472f93e39dbd313 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109924 Tested-by: Jenkins Reviewed-by: Noel Grandin --- linguistic/source/hyphdsp.hxx | 8 ++++---- linguistic/source/spelldsp.hxx | 8 ++++---- linguistic/source/thesdsp.hxx | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) (limited to 'linguistic/source') diff --git a/linguistic/source/hyphdsp.hxx b/linguistic/source/hyphdsp.hxx index 0061e9255401..a119224ca09a 100644 --- a/linguistic/source/hyphdsp.hxx +++ b/linguistic/source/hyphdsp.hxx @@ -55,9 +55,9 @@ class HyphenatorDispatcher : HyphenatorDispatcher(const HyphenatorDispatcher &) = delete; HyphenatorDispatcher & operator = (const HyphenatorDispatcher &) = delete; - inline css::uno::Reference< css::linguistic2::XLinguProperties > + inline const css::uno::Reference< css::linguistic2::XLinguProperties > & GetPropSet(); - inline css::uno::Reference< css::linguistic2::XSearchableDictionaryList > + inline const css::uno::Reference< css::linguistic2::XSearchableDictionaryList > & GetDicList(); void ClearSvcList(); @@ -108,7 +108,7 @@ public: }; -inline css::uno::Reference< css::linguistic2::XLinguProperties > +inline const css::uno::Reference< css::linguistic2::XLinguProperties > & HyphenatorDispatcher::GetPropSet() { if (!xPropSet.is()) @@ -117,7 +117,7 @@ inline css::uno::Reference< css::linguistic2::XLinguProperties > } -inline css::uno::Reference< css::linguistic2::XSearchableDictionaryList > +inline const css::uno::Reference< css::linguistic2::XSearchableDictionaryList > & HyphenatorDispatcher::GetDicList() { if (!xDicList.is()) diff --git a/linguistic/source/spelldsp.hxx b/linguistic/source/spelldsp.hxx index 492321527595..b617f749877e 100644 --- a/linguistic/source/spelldsp.hxx +++ b/linguistic/source/spelldsp.hxx @@ -61,9 +61,9 @@ class SpellCheckerDispatcher : inline linguistic::SpellCache & GetCache() const; - inline css::uno::Reference< css::linguistic2::XLinguProperties > + inline const css::uno::Reference< css::linguistic2::XLinguProperties > & GetPropSet(); - inline css::uno::Reference< css::linguistic2::XSearchableDictionaryList > + inline const css::uno::Reference< css::linguistic2::XSearchableDictionaryList > & GetDicList(); /// @throws css::uno::RuntimeException @@ -118,7 +118,7 @@ inline linguistic::SpellCache & SpellCheckerDispatcher::GetCache() const } -inline css::uno::Reference< css::linguistic2::XLinguProperties > +inline const css::uno::Reference< css::linguistic2::XLinguProperties > & SpellCheckerDispatcher::GetPropSet() { if (!m_xPropSet.is()) @@ -127,7 +127,7 @@ inline css::uno::Reference< css::linguistic2::XLinguProperties > } -inline css::uno::Reference< css::linguistic2::XSearchableDictionaryList > +inline const css::uno::Reference< css::linguistic2::XSearchableDictionaryList > & SpellCheckerDispatcher::GetDicList() { if (!m_xDicList.is()) diff --git a/linguistic/source/thesdsp.hxx b/linguistic/source/thesdsp.hxx index 077413d6e791..80cafe29cc4b 100644 --- a/linguistic/source/thesdsp.hxx +++ b/linguistic/source/thesdsp.hxx @@ -48,7 +48,7 @@ class ThesaurusDispatcher : ThesaurusDispatcher(const ThesaurusDispatcher &) = delete; ThesaurusDispatcher & operator = (const ThesaurusDispatcher &) = delete; - inline css::uno::Reference< css::linguistic2::XLinguProperties > + inline const css::uno::Reference< css::linguistic2::XLinguProperties > & GetPropSet(); void ClearSvcList(); @@ -78,7 +78,7 @@ public: }; -inline css::uno::Reference< css::linguistic2::XLinguProperties > +inline const css::uno::Reference< css::linguistic2::XLinguProperties > & ThesaurusDispatcher::GetPropSet() { if (!xPropSet.is()) -- cgit