summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
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();
}