summaryrefslogtreecommitdiff
path: root/registry/source/keyimpl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'registry/source/keyimpl.cxx')
-rw-r--r--registry/source/keyimpl.cxx5
1 files changed, 3 insertions, 2 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)