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 --- i18npool/inc/breakiteratorImpl.hxx | 2 +- i18npool/source/breakiterator/breakiteratorImpl.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'i18npool') diff --git a/i18npool/inc/breakiteratorImpl.hxx b/i18npool/inc/breakiteratorImpl.hxx index cc5bd31a28ec..a90f06182777 100644 --- a/i18npool/inc/breakiteratorImpl.hxx +++ b/i18npool/inc/breakiteratorImpl.hxx @@ -116,7 +116,7 @@ private: /// @throws css::uno::RuntimeException bool createLocaleSpecificBreakIterator( const OUString& aLocaleName ); /// @throws css::uno::RuntimeException - css::uno::Reference < XBreakIterator > getLocaleSpecificBreakIterator( const css::lang::Locale& rLocale ); + const css::uno::Reference < XBreakIterator > & getLocaleSpecificBreakIterator( const css::lang::Locale& rLocale ); }; diff --git a/i18npool/source/breakiterator/breakiteratorImpl.cxx b/i18npool/source/breakiterator/breakiteratorImpl.cxx index 11149be7558f..a449be4d17fe 100644 --- a/i18npool/source/breakiterator/breakiteratorImpl.cxx +++ b/i18npool/source/breakiterator/breakiteratorImpl.cxx @@ -605,7 +605,7 @@ bool BreakIteratorImpl::createLocaleSpecificBreakIterator(const OUString& aLocal return false; } -Reference < XBreakIterator > +const Reference < XBreakIterator > & BreakIteratorImpl::getLocaleSpecificBreakIterator(const Locale& rLocale) { if (xBI.is() && rLocale == aLocale) -- cgit