diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-06 08:50:58 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-06 09:54:25 +0200 |
commit | 24eae7bd702f3f6dd790be7ac38ac16e9fe6a375 (patch) | |
tree | 56398264184709e84517c2e843aa3a0894cc1c51 /lingucomponent | |
parent | fad919eb0d30b2303193e1c00ba765514957652c (diff) |
clang-tidy performance-unnecessary-value-param
Change-Id: I69247498e13331f6ef84afeb242479f8fb1178a8
Reviewed-on: https://gerrit.libreoffice.org/60068
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'lingucomponent')
-rw-r--r-- | lingucomponent/source/spellcheck/spell/sspellimp.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lingucomponent/source/spellcheck/spell/sspellimp.cxx b/lingucomponent/source/spellcheck/spell/sspellimp.cxx index db6c183a8cef..7e9457ff4fa1 100644 --- a/lingucomponent/source/spellcheck/spell/sspellimp.cxx +++ b/lingucomponent/source/spellcheck/spell/sspellimp.cxx @@ -46,6 +46,7 @@ #include <rtl/textenc.h> #include <sal/log.hxx> +#include <utility> #include <vector> #include <set> #include <string.h> @@ -76,8 +77,10 @@ SpellChecker::SpellChecker() : { } -SpellChecker::DictItem::DictItem(OUString i_DName, Locale i_DLoc, rtl_TextEncoding i_DEnc): - m_aDName(i_DName), m_aDLoc(i_DLoc), m_aDEnc(i_DEnc) +SpellChecker::DictItem::DictItem(OUString i_DName, Locale i_DLoc, rtl_TextEncoding i_DEnc) + : m_aDName(std::move(i_DName)) + , m_aDLoc(std::move(i_DLoc)) + , m_aDEnc(i_DEnc) { } |