summaryrefslogtreecommitdiffstats
path: root/comphelper
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-01-11 11:21:46 +0100
committerStephan Bergmann <sbergman@redhat.com>2019-01-11 13:55:14 +0100
commit70519a43e0d89a6b5d89859a6851f8c757c6b0c7 (patch)
treebc1f4a6b6510e3bff75e9dc54eb71e2fa6cfc3c8 /comphelper
parenttdf#120993 update Add fields icon in colibre (diff)
downloadcore-70519a43e0d89a6b5d89859a6851f8c757c6b0c7.tar.gz
core-70519a43e0d89a6b5d89859a6851f8c757c6b0c7.zip
Replace OUStringBuffer::appendCopy with append(std::u16string_view)
...which is more general Change-Id: I94f28f8eda887120cf5f143b4549e0339b60e6a7 Reviewed-on: https://gerrit.libreoffice.org/66155 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/misc/string.cxx3
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;
}