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.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/registry/source/keyimpl.cxx b/registry/source/keyimpl.cxx
index 508d36ea3a66..06bbda584c33 100644
--- a/registry/source/keyimpl.cxx
+++ b/registry/source/keyimpl.cxx
@@ -19,6 +19,7 @@
#include <string.h>
+#include <string_view>
#include "keyimpl.hxx"
@@ -987,7 +988,7 @@ OUString ORegKey::getFullPath(OUString const & path) const {
OUStringBuffer b(m_name);
if (!b.isEmpty() && b[b.getLength() - 1] == '/') {
if (path[0] == '/') {
- b.appendCopy(path,1);
+ b.append(std::u16string_view(path).substr(1));
} else {
b.append(path);
}