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 <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin
2022-04-13 08:38:53 +02:00
parent e568c9dca8
commit fdfd517a6f
244 changed files with 978 additions and 878 deletions
+3 -2
View File
@@ -46,6 +46,7 @@
#include <sal/log.hxx>
#include <uno/environment.hxx>
#include <uno/mapping.hxx>
#include <o3tl/string_view.hxx>
#include "loadsharedlibcomponentfactory.hxx"
@@ -1322,9 +1323,9 @@ void cppuhelper::ServiceManager::removeEventListenerFromComponent(
}
}
void cppuhelper::ServiceManager::init(OUString const & rdbUris) {
void cppuhelper::ServiceManager::init(std::u16string_view rdbUris) {
for (sal_Int32 i = 0; i != -1;) {
OUString uri(rdbUris.getToken(0, ' ', i));
OUString uri(o3tl::getToken(rdbUris, 0, ' ', i));
if (uri.isEmpty()) {
continue;
}
+1 -1
View File
@@ -193,7 +193,7 @@ public:
using ServiceManagerBase::acquire;
using ServiceManagerBase::release;
void init(OUString const & rdbUris);
void init(std::u16string_view rdbUris);
void setContext(
css::uno::Reference< css::uno::XComponentContext > const & context)
+3 -2
View File
@@ -53,6 +53,7 @@
#include <sal/log.hxx>
#include <sal/macros.h>
#include <sal/types.h>
#include <o3tl/string_view.hxx>
#include <unoidl/unoidl.hxx>
@@ -2023,9 +2024,9 @@ cppuhelper::TypeManager::createTypeDescriptionEnumeration(
depth == css::reflection::TypeDescriptionSearchDepth_INFINITE);
}
void cppuhelper::TypeManager::init(OUString const & rdbUris) {
void cppuhelper::TypeManager::init(std::u16string_view rdbUris) {
for (sal_Int32 i = 0; i != -1;) {
OUString uri(rdbUris.getToken(0, ' ', i));
OUString uri(o3tl::getToken(rdbUris, 0, ' ', i));
if (uri.isEmpty()) {
continue;
}
+1 -1
View File
@@ -47,7 +47,7 @@ public:
using TypeManager_Base::acquire;
using TypeManager_Base::release;
void init(OUString const & rdbUris);
void init(std::u16string_view rdbUris);
css::uno::Any find(OUString const & name);