diff options
Diffstat (limited to 'configmgr')
-rw-r--r-- | configmgr/qa/unit/test.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configmgr/qa/unit/test.cxx b/configmgr/qa/unit/test.cxx index 1ea04c4081f1..f98fa730f58c 100644 --- a/configmgr/qa/unit/test.cxx +++ b/configmgr/qa/unit/test.cxx @@ -20,6 +20,7 @@ #include <sal/config.h> #include <cstddef> +#include <string_view> #include <com/sun/star/beans/NamedValue.hpp> #include <com/sun/star/beans/PropertyChangeEvent.hpp> @@ -553,7 +554,7 @@ void normalize( } else { OUStringBuffer buf(path); buf.append('/'); - buf.appendCopy(relative, 0, i); + buf.append(std::u16string_view(relative).substr(0, i)); *normalizedPath = buf.makeStringAndClear(); *name = relative.copy(i + 1); } |