From e156cd6610bf8cfe5097498f2223bbfd26819937 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 25 Apr 2022 13:20:20 +0200 Subject: use string_view in CompareProtocolScheme Change-Id: I3584042d0341d5c1b4f4e742e25e9eb0aa26f1da Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133378 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svl/source/misc/urihelper.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'svl') 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++] != ':') ; -- cgit