diff options
Diffstat (limited to 'toolkit/source/awt/animatedimagespeer.cxx')
-rw-r--r-- | toolkit/source/awt/animatedimagespeer.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/toolkit/source/awt/animatedimagespeer.cxx b/toolkit/source/awt/animatedimagespeer.cxx index b14a3efafaa5..9eeddc1715dc 100644 --- a/toolkit/source/awt/animatedimagespeer.cxx +++ b/toolkit/source/awt/animatedimagespeer.cxx @@ -119,11 +119,9 @@ namespace toolkit const sal_Int32 separatorPos = i_imageURL.indexOf( '/' ); ENSURE_OR_RETURN( separatorPos != -1, "lcl_getHighContrastURL: unsupported URL scheme - cannot automatically determine HC version!", i_imageURL ); - OUStringBuffer composer; - composer.append( std::u16string_view(i_imageURL).substr(0, separatorPos) ); - composer.append( "/sifr" ); - composer.append( std::u16string_view(i_imageURL).substr(separatorPos) ); - return composer.makeStringAndClear(); + OUString composer = OUString::Concat(i_imageURL.subView(0, separatorPos)) + "/sifr" + + i_imageURL.subView(separatorPos); + return composer; } |