summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-04-25 13:20:20 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-04-25 14:45:03 +0200
commite156cd6610bf8cfe5097498f2223bbfd26819937 (patch)
tree2c98e700efa677dedda50b7c0a467f3a861b3831 /svl
parentace2e40a5b89967e247db1ebe9da65d41706d446 (diff)
use string_view in CompareProtocolScheme
Change-Id: I3584042d0341d5c1b4f4e742e25e9eb0aa26f1da Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133378 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl')
-rw-r--r--svl/source/misc/urihelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svl/source/misc/urihelper.cxx b/svl/source/misc/urihelper.cxx
index e5ddbc37a93e..30dfdc87f387 100644
--- a/svl/source/misc/urihelper.cxx
+++ b/svl/source/misc/urihelper.cxx
@@ -535,7 +535,7 @@ OUString URIHelper::FindFirstURLInText(OUString const & rText,
if (rtl::isAsciiAlpha(c))
{
sal_Int32 i = nPos;
- INetProtocol eScheme = INetURLObject::CompareProtocolScheme(rText.copy(i, rEnd - i));
+ INetProtocol eScheme = INetURLObject::CompareProtocolScheme(rText.subView(i, rEnd - i));
if (eScheme == INetProtocol::File) // 2nd
{
while (rText[i++] != ':') ;