summaryrefslogtreecommitdiff
path: root/registry
diff options
context:
space:
mode:
Diffstat (limited to 'registry')
-rw-r--r--registry/source/keyimpl.cxx5
-rw-r--r--registry/source/keyimpl.hxx2
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()