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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user