summaryrefslogtreecommitdiff
path: root/javaunohelper
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-09-26 13:15:08 +0200
committerNoel Grandin <noel@peralex.com>2014-09-29 12:50:35 +0200
commitc353caee1c86476d98cd483f963f63c4195975f4 (patch)
tree861ed6bf7d859115980928658a07469699020443 /javaunohelper
parent07ca074e425ea381b9de1e7298be11678d3f6b38 (diff)
loplugin: cstylecast
Change-Id: I53b69a488c70769cbb841db519bc28fd211dc087
Diffstat (limited to 'javaunohelper')
-rw-r--r--javaunohelper/source/bootstrap.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/javaunohelper/source/bootstrap.cxx b/javaunohelper/source/bootstrap.cxx
index fe26502b4fde..1e800ddb3563 100644
--- a/javaunohelper/source/bootstrap.cxx
+++ b/javaunohelper/source/bootstrap.cxx
@@ -76,7 +76,7 @@ jobject Java_com_sun_star_comp_helper_Bootstrap_cppuhelper_1bootstrap(
while (nPos < len)
{
// name
- jstring jstr = (jstring)jni_env->GetObjectArrayElement( jpairs, nPos );
+ jstring jstr = static_cast<jstring>(jni_env->GetObjectArrayElement( jpairs, nPos ));
if (JNI_FALSE != jni_env->ExceptionCheck())
{
jni_env->ExceptionClear();
@@ -86,7 +86,7 @@ jobject Java_com_sun_star_comp_helper_Bootstrap_cppuhelper_1bootstrap(
{
OUString name( ::javaunohelper::jstring_to_oustring( jstr, jni_env ) );
// value
- jstr = (jstring)jni_env->GetObjectArrayElement( jpairs, nPos +1 );
+ jstr = static_cast<jstring>(jni_env->GetObjectArrayElement( jpairs, nPos +1 ));
if (JNI_FALSE != jni_env->ExceptionCheck())
{
jni_env->ExceptionClear();