summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-05-14 20:54:34 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-05-16 11:05:30 +0200
commitee3283dfdf2ebe8a6323ecfa518dee1b0fe8cbec (patch)
tree1a1d26e9b70bb1ffe9cd0c7bae23f9926b54af13 /framework
parent622620936b2da25c3376a8a09af176cd89fd6567 (diff)
use more string_view in URLTransformer::parseStrict
Change-Id: If3087253a75a1cba16f69eecccbaf845ed0b12bc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134344 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'framework')
-rw-r--r--framework/source/services/urltransformer.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/source/services/urltransformer.cxx b/framework/source/services/urltransformer.cxx
index ef9a5d55f152..b4fd3de16a1a 100644
--- a/framework/source/services/urltransformer.cxx
+++ b/framework/source/services/urltransformer.cxx
@@ -120,7 +120,7 @@ sal_Bool SAL_CALL URLTransformer::parseStrict( css::util::URL& aURL )
if ( nURLIndex <= 1 )
return false;
- OUString aProtocol = aURL.Complete.copy( 0, nURLIndex+1 );
+ std::u16string_view aProtocol = aURL.Complete.subView( 0, nURLIndex+1 );
// If INetURLObject knows this protocol let it parse
if ( INetURLObject::CompareProtocolScheme( aProtocol ) != INetProtocol::NotValid )