From 24eae7bd702f3f6dd790be7ac38ac16e9fe6a375 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 6 Sep 2018 08:50:58 +0200 Subject: clang-tidy performance-unnecessary-value-param Change-Id: I69247498e13331f6ef84afeb242479f8fb1178a8 Reviewed-on: https://gerrit.libreoffice.org/60068 Tested-by: Jenkins Reviewed-by: Noel Grandin --- lingucomponent/source/spellcheck/spell/sspellimp.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lingucomponent') 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 #include +#include #include #include #include @@ -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) { } -- cgit