diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-08-18 12:28:31 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-08-18 18:19:09 +0200 |
commit | 4dbe4a9313d9844c10f71b29a77218d31bc6f3b3 (patch) | |
tree | caf0ca4ceb3cbbb2aaf1255cebbcb8b38d6d45c5 /unotools | |
parent | 9e1aee666fa48b768c829bbc707f47a98250df1e (diff) |
loplugin:passstuffbyref
Change-Id: I4f01eb3842ef198f02af274f54afb2760c820a4b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120655
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/config/moduleoptions.cxx | 2 | ||||
-rw-r--r-- | unotools/source/i18n/localedatawrapper.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/unotools/source/config/moduleoptions.cxx b/unotools/source/config/moduleoptions.cxx index 3e5443295c41..a4f4c509e839 100644 --- a/unotools/source/config/moduleoptions.cxx +++ b/unotools/source/config/moduleoptions.cxx @@ -817,7 +817,7 @@ bool SvtModuleOptions::IsModuleInstalled( EModule eModule ) const return m_pImpl->IsModuleInstalled( eModule ); } -OUString SvtModuleOptions::GetFactoryName( EFactory eFactory ) const +const OUString & SvtModuleOptions::GetFactoryName( EFactory eFactory ) const { // doesn't need mutex, never modified return m_pImpl->GetFactoryName( eFactory ); diff --git a/unotools/source/i18n/localedatawrapper.cxx b/unotools/source/i18n/localedatawrapper.cxx index 1793b8594eeb..e30c7d30f558 100644 --- a/unotools/source/i18n/localedatawrapper.cxx +++ b/unotools/source/i18n/localedatawrapper.cxx @@ -909,7 +909,7 @@ void LocaleDataWrapper::loadDigitGrouping() } } -css::uno::Sequence< sal_Int32 > LocaleDataWrapper::getDigitGrouping() const +const css::uno::Sequence< sal_Int32 >& LocaleDataWrapper::getDigitGrouping() const { return aGrouping; } @@ -1538,7 +1538,7 @@ css::uno::Sequence< css::i18n::Calendar2 > LocaleDataWrapper::getAllCalendars() // --- XLocaleData4 ---------------------------------------------------------- -css::uno::Sequence< OUString > LocaleDataWrapper::getDateAcceptancePatterns() const +const css::uno::Sequence< OUString > & LocaleDataWrapper::getDateAcceptancePatterns() const { return aDateAcceptancePatterns; } |