From 9f1701d01d9f664828356976d8592492f85b30f5 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 4 Apr 2022 11:14:11 +0200 Subject: use more o3tl::getToken found by inspecting call sites of OUString::getToken Change-Id: I4269c7476c7aa46fac39528227e350568f0eb34a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132644 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svl/source/misc/inettype.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'svl') diff --git a/svl/source/misc/inettype.cxx b/svl/source/misc/inettype.cxx index 25b92d390e2c..b38346d702a7 100644 --- a/svl/source/misc/inettype.cxx +++ b/svl/source/misc/inettype.cxx @@ -311,7 +311,7 @@ INetContentType INetContentTypes::GetContentTypeFromURL(OUString const & rURL) { INetContentType eTypeID = CONTENT_TYPE_UNKNOWN; sal_Int32 nIdx{ 0 }; - OUString aToken = rURL.getToken(0, ':', nIdx); + OUString aToken( rURL.getToken(0, ':', nIdx) ); if (!aToken.isEmpty()) { if (aToken.equalsIgnoreAsciiCase(INETTYPE_URL_PROT_FILE)) -- cgit