summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-10-11 21:12:33 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-10-12 08:30:29 +0200
commite4913a56c07914708d8272ae211e23b73349e673 (patch)
tree25010a72020dcc9b8f1bcd797db4e66ae9f2c13d /svtools
parent2c596b694a641de1b18afb1e9a5b843df638af24 (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 'svtools')
-rw-r--r--svtools/source/misc/langhelp.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svtools/source/misc/langhelp.cxx b/svtools/source/misc/langhelp.cxx
index 92171ea6bc99..ff48868e17aa 100644
--- a/svtools/source/misc/langhelp.cxx
+++ b/svtools/source/misc/langhelp.cxx
@@ -69,9 +69,9 @@ class InstallLangpack : public Idle
{
std::vector<OUString> m_aPackages;
public:
- explicit InstallLangpack(const std::vector<OUString>& rPackages)
+ explicit InstallLangpack(std::vector<OUString>&& rPackages)
: Idle("install langpack")
- , m_aPackages(rPackages)
+ , m_aPackages(std::move(rPackages))
{
SetPriority(TaskPriority::LOWEST);
}
@@ -151,7 +151,7 @@ OUString getInstalledLocaleForSystemUILanguage(const css::uno::Sequence<OUString
}
if (!aPackages.empty())
{
- xLangpackInstaller.reset(new InstallLangpack(aPackages));
+ xLangpackInstaller.reset(new InstallLangpack(std::move(aPackages)));
xLangpackInstaller->Start();
}
}