diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-05-09 13:37:18 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-05-09 17:59:45 +0200 |
commit | 227078bc8d1e37d80eab2d50478ec5fc6345a616 (patch) | |
tree | 738624d1af9f9e2206e72ec5cd423df4d35e7810 /javaunohelper/source/bootstrap.cxx | |
parent | 38c980d472b5d311de60ee7cfcce880f66a55df8 (diff) |
loplugin:ostr in javaunohelper
Change-Id: I641f2d107e3a8aaabdd2f8ede10e7e6b13078602
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167384
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'javaunohelper/source/bootstrap.cxx')
-rw-r--r-- | javaunohelper/source/bootstrap.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/javaunohelper/source/bootstrap.cxx b/javaunohelper/source/bootstrap.cxx index 1cacea950c0d..3b6c10bc95de 100644 --- a/javaunohelper/source/bootstrap.cxx +++ b/javaunohelper/source/bootstrap.cxx @@ -88,7 +88,7 @@ jobject Java_com_sun_star_comp_helper_Bootstrap_cppuhelper_1bootstrap( if (jni_env->ExceptionCheck()) { jni_env->ExceptionClear(); - throw RuntimeException( "index out of bounds?!" ); + throw RuntimeException( u"index out of bounds?!"_ustr ); } if (nullptr != jstr) { @@ -98,7 +98,7 @@ jobject Java_com_sun_star_comp_helper_Bootstrap_cppuhelper_1bootstrap( if (jni_env->ExceptionCheck()) { jni_env->ExceptionClear(); - throw RuntimeException( "index out of bounds?!" ); + throw RuntimeException( u"index out of bounds?!"_ustr ); } if (nullptr != jstr) { @@ -132,7 +132,7 @@ jobject Java_com_sun_star_comp_helper_Bootstrap_cppuhelper_1bootstrap( // get uno envs OUString cpp_env_name = CPPU_CURRENT_LANGUAGE_BINDING_NAME; - OUString java_env_name = UNO_LB_JAVA; + OUString java_env_name = u"" UNO_LB_JAVA ""_ustr; Environment java_env, cpp_env; uno_getEnvironment(reinterpret_cast<uno_Environment **>(&cpp_env), cpp_env_name.pData, nullptr); uno_getEnvironment(reinterpret_cast<uno_Environment **>(&java_env), java_env_name.pData, vm_access.get() ); @@ -144,7 +144,7 @@ jobject Java_com_sun_star_comp_helper_Bootstrap_cppuhelper_1bootstrap( Reference< lang::XComponent > xComp( xContext, UNO_QUERY ); if (xComp.is()) xComp->dispose(); - throw RuntimeException("cannot get mapping C++ <-> Java!" ); + throw RuntimeException(u"cannot get mapping C++ <-> Java!"_ustr ); } jobject jret = static_cast<jobject>(mapping.mapInterface( xContext.get(), cppu::UnoType<decltype(xContext)>::get() )); |