diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-01-25 20:31:22 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-01-26 08:30:42 +0100 |
commit | c83166ce7126b3c3c6aca8f6d2ab9cd9e16f5763 (patch) | |
tree | 2760b4870bf080fedcb40bf8c6f93c32030c4f7d /linguistic | |
parent | a553c85cbd80a045b2e4742eefaa7fcc3953cb08 (diff) |
loplugin:passstuffbyref
Change-Id: I330e0ab6c9955939dad313f9d472f93e39dbd313
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109924
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'linguistic')
-rw-r--r-- | linguistic/source/hyphdsp.hxx | 8 | ||||
-rw-r--r-- | linguistic/source/spelldsp.hxx | 8 | ||||
-rw-r--r-- | linguistic/source/thesdsp.hxx | 4 |
3 files changed, 10 insertions, 10 deletions
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()) |