From 227078bc8d1e37d80eab2d50478ec5fc6345a616 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 9 May 2024 13:37:18 +0200 Subject: loplugin:ostr in javaunohelper Change-Id: I641f2d107e3a8aaabdd2f8ede10e7e6b13078602 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167384 Tested-by: Jenkins Reviewed-by: Noel Grandin --- javaunohelper/source/javaunohelper.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'javaunohelper/source/javaunohelper.cxx') diff --git a/javaunohelper/source/javaunohelper.cxx b/javaunohelper/source/javaunohelper.cxx index 8db57c5b78f3..970b20b64b14 100644 --- a/javaunohelper/source/javaunohelper.cxx +++ b/javaunohelper/source/javaunohelper.cxx @@ -94,7 +94,7 @@ jboolean Java_com_sun_star_comp_helper_SharedLibraryLoader_component_1writeInfo( // create vm access ::rtl::Reference< ::jvmaccess::UnoVirtualMachine > vm_access( ::javaunohelper::create_vm_access( pJEnv, loader ) ); - OUString java_env_name = UNO_LB_JAVA; + OUString java_env_name = u"" UNO_LB_JAVA ""_ustr; uno_getEnvironment( reinterpret_cast(&java_env), java_env_name.pData, vm_access.get() ); @@ -184,7 +184,7 @@ jobject Java_com_sun_star_comp_helper_SharedLibraryLoader_component_1getFactory( // create vm access ::rtl::Reference< ::jvmaccess::UnoVirtualMachine > vm_access( ::javaunohelper::create_vm_access( pJEnv, loader ) ); - OUString java_env_name = UNO_LB_JAVA; + OUString java_env_name = u"" UNO_LB_JAVA ""_ustr; uno_getEnvironment( reinterpret_cast(&java_env), java_env_name.pData, vm_access.get() ); -- cgit