diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-04-12 12:43:11 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-04-13 08:38:53 +0200 |
commit | fdfd517a6f75e394ddcb1e195decbfed33ba56b9 (patch) | |
tree | e3bff14e5531affcd908415b4e85d7ceac4aa1fd /jvmaccess | |
parent | e568c9dca8b93b96a8a130a8fb6f1bba1a33d6ea (diff) |
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>
Diffstat (limited to 'jvmaccess')
-rw-r--r-- | jvmaccess/source/classpath.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/jvmaccess/source/classpath.cxx b/jvmaccess/source/classpath.cxx index b4d0ef3d6bfa..95915196bad9 100644 --- a/jvmaccess/source/classpath.cxx +++ b/jvmaccess/source/classpath.cxx @@ -34,6 +34,7 @@ #include <cppuhelper/exc_hlp.hxx> #include <rtl/ustring.hxx> #include <sal/types.h> +#include <o3tl/string_view.hxx> #include <jni.h> @@ -41,7 +42,7 @@ namespace com::sun::star::uno { class XComponentContext; } jobjectArray jvmaccess::ClassPath::translateToUrls( css::uno::Reference< css::uno::XComponentContext > const & context, - JNIEnv * environment, OUString const & classPath) + JNIEnv * environment, std::u16string_view classPath) { assert(context.is()); assert(environment != nullptr); @@ -56,7 +57,7 @@ jobjectArray jvmaccess::ClassPath::translateToUrls( } ::std::vector< jobject > urls; for (::sal_Int32 i = 0; i != -1;) { - OUString url(classPath.getToken(0, ' ', i)); + OUString url(o3tl::getToken(classPath, 0, ' ', i)); if (!url.isEmpty()) { css::uno::Reference< css::uri::XVndSunStarExpandUrlReference > expUrl( |