From fdfd517a6f75e394ddcb1e195decbfed33ba56b9 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 12 Apr 2022 12:43:11 +0200 Subject: loplugin:stringviewparam whitelist some more functions for which we have o3tl:: equivalents Change-Id: I4670fd8b703ac47214be213f41e88d1c6ede7032 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132913 Tested-by: Jenkins Reviewed-by: Noel Grandin --- unoidl/source/unoidl-read.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'unoidl') diff --git a/unoidl/source/unoidl-read.cxx b/unoidl/source/unoidl-read.cxx index fec721a34491..fcf541612ec5 100644 --- a/unoidl/source/unoidl-read.cxx +++ b/unoidl/source/unoidl-read.cxx @@ -26,6 +26,7 @@ #include #include #include +#include namespace { @@ -458,11 +459,11 @@ void closeModules( } } -OUString openModulesFor(std::vector & modules, OUString const & name) +OUString openModulesFor(std::vector & modules, std::u16string_view name) { std::vector::iterator i(modules.begin()); for (sal_Int32 j = 0;;) { - OUString id(name.getToken(0, '.', j)); + OUString id(o3tl::getToken(name, 0, '.', j)); if (j == -1) { closeModules( modules, -- cgit