diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-17 10:50:59 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-13 19:11:49 +0200 |
commit | 1743d74e87745a26043642a06dc8a57b1af29740 (patch) | |
tree | 86354c464ed2e51bf940b58333844c0ad0670d01 /lingucomponent | |
parent | a0b9a7e7f0d14d0f121e54cb8979074bc5dfbe38 (diff) |
clang-tidy modernize-pass-by-value in various
Change-Id: Ie091b22bd77d4e1fbff46545bc86c12f1dbafcfe
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138171
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'lingucomponent')
-rw-r--r-- | lingucomponent/source/thesaurus/libnth/nthesdta.cxx | 8 | ||||
-rw-r--r-- | lingucomponent/source/thesaurus/libnth/nthesdta.hxx | 2 |
2 files changed, 4 insertions, 6 deletions
diff --git a/lingucomponent/source/thesaurus/libnth/nthesdta.cxx b/lingucomponent/source/thesaurus/libnth/nthesdta.cxx index aa7d2afa7f8d..6d076d84841a 100644 --- a/lingucomponent/source/thesaurus/libnth/nthesdta.cxx +++ b/lingucomponent/source/thesaurus/libnth/nthesdta.cxx @@ -21,6 +21,7 @@ #include "nthesdta.hxx" #include <linguistic/misc.hxx> +#include <utility> using namespace osl; using namespace com::sun::star; @@ -32,12 +33,9 @@ using namespace com::sun::star::linguistic2; namespace linguistic { -Meaning::Meaning( - const OUString &rTerm) : - +Meaning::Meaning(OUString _aTerm) : aSyn ( Sequence< OUString >(1) ), - aTerm (rTerm) - + aTerm (std::move(_aTerm)) { #if 0 // this is for future use by a german thesaurus when one exists diff --git a/lingucomponent/source/thesaurus/libnth/nthesdta.hxx b/lingucomponent/source/thesaurus/libnth/nthesdta.hxx index 8e6cb7561a94..fb2c6438d751 100644 --- a/lingucomponent/source/thesaurus/libnth/nthesdta.hxx +++ b/lingucomponent/source/thesaurus/libnth/nthesdta.hxx @@ -41,7 +41,7 @@ class Meaning : Meaning & operator = (const Meaning &) = delete; public: - explicit Meaning(const OUString &rTerm); + explicit Meaning(OUString aTerm); virtual ~Meaning() override; // XMeaning |