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 /registry | |
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 'registry')
-rw-r--r-- | registry/source/keyimpl.cxx | 5 | ||||
-rw-r--r-- | registry/source/keyimpl.hxx | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/registry/source/keyimpl.cxx b/registry/source/keyimpl.cxx index 37efeda82ff1..34e51483e7cc 100644 --- a/registry/source/keyimpl.cxx +++ b/registry/source/keyimpl.cxx @@ -29,14 +29,15 @@ #include <osl/diagnose.h> #include <sal/log.hxx> #include <memory> +#include <utility> using namespace store; namespace { char const VALUE_PREFIX[] = "$VL_"; } -ORegKey::ORegKey(const OUString& keyName, ORegistry* pReg) +ORegKey::ORegKey(OUString keyName, ORegistry* pReg) : m_refCount(1) - , m_name(keyName) + , m_name(std::move(keyName)) , m_bDeleted(false) , m_bModified(false) , m_pRegistry(pReg) diff --git a/registry/source/keyimpl.hxx b/registry/source/keyimpl.hxx index 1958a7b6247e..4bfbcec3b7b7 100644 --- a/registry/source/keyimpl.hxx +++ b/registry/source/keyimpl.hxx @@ -31,7 +31,7 @@ class ORegKey { public: - ORegKey(const OUString& keyName, ORegistry* pReg); + ORegKey(OUString keyName, ORegistry* pReg); ~ORegKey(); void acquire() |