diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-10-11 21:12:33 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-10-12 08:30:29 +0200 |
commit | e4913a56c07914708d8272ae211e23b73349e673 (patch) | |
tree | 25010a72020dcc9b8f1bcd797db4e66ae9f2c13d /linguistic | |
parent | 2c596b694a641de1b18afb1e9a5b843df638af24 (diff) |
loplugin:moveparam in various
Change-Id: I522d03ffdaafcfe364425b4135249492879e3d5b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123429
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'linguistic')
-rw-r--r-- | linguistic/source/lngsvcmgr.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/linguistic/source/lngsvcmgr.cxx b/linguistic/source/lngsvcmgr.cxx index 72f93042dde2..278e7942828b 100644 --- a/linguistic/source/lngsvcmgr.cxx +++ b/linguistic/source/lngsvcmgr.cxx @@ -131,9 +131,9 @@ struct SvcInfo const std::vector< LanguageType > aSuppLanguages; SvcInfo( const OUString &rSvcImplName, - const std::vector< LanguageType > &rSuppLanguages ) : + std::vector< LanguageType >&& rSuppLanguages ) : aSvcImplName (rSvcImplName), - aSuppLanguages (rSuppLanguages) + aSuppLanguages (std::move(rSuppLanguages)) { } @@ -961,7 +961,7 @@ void LngSvcMgr::GetAvailableSpellSvcs_Impl() uno::Sequence<lang::Locale> aLocaleSequence(xSvc->getLocales()); aLanguages = LocaleSeqToLangVec( aLocaleSequence ); - pAvailSpellSvcs->push_back( SvcInfo( aImplName, aLanguages ) ); + pAvailSpellSvcs->push_back( SvcInfo( aImplName, std::move(aLanguages) ) ); } catch (const uno::Exception &) { @@ -1019,7 +1019,7 @@ void LngSvcMgr::GetAvailableGrammarSvcs_Impl() uno::Sequence<lang::Locale> aLocaleSequence(xSvc->getLocales()); aLanguages = LocaleSeqToLangVec( aLocaleSequence ); - pAvailGrammarSvcs->push_back( SvcInfo( aImplName, aLanguages ) ); + pAvailGrammarSvcs->push_back( SvcInfo( aImplName, std::move(aLanguages) ) ); } catch (const uno::Exception &) { @@ -1071,7 +1071,7 @@ void LngSvcMgr::GetAvailableHyphSvcs_Impl() SAL_WARN_IF( aImplName.isEmpty(), "linguistic", "empty implementation name" ); uno::Sequence<lang::Locale> aLocaleSequence(xSvc->getLocales()); aLanguages = LocaleSeqToLangVec( aLocaleSequence ); - pAvailHyphSvcs->push_back( SvcInfo( aImplName, aLanguages ) ); + pAvailHyphSvcs->push_back( SvcInfo( aImplName, std::move(aLanguages) ) ); } catch (const uno::Exception &) { @@ -1125,7 +1125,7 @@ void LngSvcMgr::GetAvailableThesSvcs_Impl() uno::Sequence<lang::Locale> aLocaleSequence(xSvc->getLocales()); aLanguages = LocaleSeqToLangVec( aLocaleSequence ); - pAvailThesSvcs->push_back( SvcInfo( aImplName, aLanguages ) ); + pAvailThesSvcs->push_back( SvcInfo( aImplName, std::move(aLanguages) ) ); } catch (const uno::Exception &) { |