diff options
Diffstat (limited to 'comphelper/source/misc/string.cxx')
-rw-r--r-- | comphelper/source/misc/string.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/comphelper/source/misc/string.cxx b/comphelper/source/misc/string.cxx index 89d72a3a1cf2..0822d39d5d78 100644 --- a/comphelper/source/misc/string.cxx +++ b/comphelper/source/misc/string.cxx @@ -21,6 +21,7 @@ #include <cstddef> #include <string.h> +#include <string_view> #include <vector> #include <algorithm> @@ -443,7 +444,7 @@ OUString removeAny(OUString const& rIn, { if (i > 0) { - buf.appendCopy(rIn, 0, i); + buf.append(std::u16string_view(rIn).substr(0, i)); } isFound = true; } |