summaryrefslogtreecommitdiff
path: root/scripting/source/stringresource
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-06-23 15:09:08 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-06-23 18:24:07 +0200
commitc7c2f6b37a834a3135e3683f1fc27f3ec938640c (patch)
tree5f2e849fa01674918760872259db95bc436fe427 /scripting/source/stringresource
parent5bb5763e2f208cddd114fe96466bdfa2ed3bdbf3 (diff)
clang-tidy modernize-pass-by-value in scripting
Change-Id: I95e2a391a984905cac5cbf3f1bb640e1157fafd5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136338 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'scripting/source/stringresource')
-rw-r--r--scripting/source/stringresource/stringresource.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripting/source/stringresource/stringresource.hxx b/scripting/source/stringresource/stringresource.hxx
index 7722da62f28d..50fd8567e0e6 100644
--- a/scripting/source/stringresource/stringresource.hxx
+++ b/scripting/source/stringresource/stringresource.hxx
@@ -31,6 +31,7 @@
#include <comphelper/interfacecontainer4.hxx>
#include <mutex>
#include <unordered_map>
+#include <utility>
#include <vector>
@@ -67,7 +68,7 @@ struct LocaleItem
bool m_bModified;
LocaleItem( css::lang::Locale locale, bool bLoaded=true )
- : m_locale( locale )
+ : m_locale(std::move( locale ))
, m_nNextIndex( 0 )
, m_bLoaded( bLoaded )
, m_bModified( false )