summaryrefslogtreecommitdiff
path: root/toolkit
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 /toolkit
parenta0210c5c5e8fd47b55567a8b18788d57d2b7decb (diff)
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 'toolkit')
-rw-r--r--toolkit/source/awt/animatedimagespeer.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/toolkit/source/awt/animatedimagespeer.cxx b/toolkit/source/awt/animatedimagespeer.cxx
index 8221d5a21082..4d1be4be96e7 100644
--- a/toolkit/source/awt/animatedimagespeer.cxx
+++ b/toolkit/source/awt/animatedimagespeer.cxx
@@ -39,7 +39,7 @@
#include <vcl/settings.hxx>
#include <limits>
-
+#include <string_view>
namespace toolkit
{
@@ -117,9 +117,9 @@ namespace toolkit
ENSURE_OR_RETURN( separatorPos != -1, "lcl_getHighContrastURL: unsupported URL scheme - cannot automatically determine HC version!", i_imageURL );
OUStringBuffer composer;
- composer.appendCopy( i_imageURL, 0, separatorPos );
+ composer.append( std::u16string_view(i_imageURL).substr(0, separatorPos) );
composer.append( "/sifr" );
- composer.appendCopy( i_imageURL, separatorPos );
+ composer.append( std::u16string_view(i_imageURL).substr(separatorPos) );
return composer.makeStringAndClear();
}