summaryrefslogtreecommitdiffstats
path: root/basic/source/runtime/runtime.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'basic/source/runtime/runtime.cxx')
-rw-r--r--basic/source/runtime/runtime.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/basic/source/runtime/runtime.cxx b/basic/source/runtime/runtime.cxx
index c8d3ccbd5699..ea0d9ae69379 100644
--- a/basic/source/runtime/runtime.cxx
+++ b/basic/source/runtime/runtime.cxx
@@ -20,7 +20,7 @@
#include <stdlib.h>
#include <algorithm>
-
+#include <string_view>
#include <unordered_map>
#include <com/sun/star/beans/XPropertySet.hpp>
@@ -2050,7 +2050,7 @@ void SbiRuntime::StepRSET()
}
else
{
- aNewStr.appendCopy(aRefValString, 0, nVarStrLen);
+ aNewStr.append(std::u16string_view(aRefValString).substr(0, nVarStrLen));
}
refVar->PutString(aNewStr.makeStringAndClear());