diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-01-17 18:14:27 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-01-20 09:06:45 +0100 |
commit | 93afb9ad7f42b9789b1a84281f434f0a8098c063 (patch) | |
tree | c769de04bca4661ccaaabac6ef5347c8978f7e17 /bridges/source/jni_uno/jni_java2uno.cxx | |
parent | 4130c64355e08efb84ef1f7e304c01849c2529c6 (diff) |
Some more loplugin:cstylecast: bridges
Change-Id: Ic224abf67acb212ee20ccf9eb81b5ed5edf851b9
Diffstat (limited to 'bridges/source/jni_uno/jni_java2uno.cxx')
-rw-r--r-- | bridges/source/jni_uno/jni_java2uno.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bridges/source/jni_uno/jni_java2uno.cxx b/bridges/source/jni_uno/jni_java2uno.cxx index a3887f772443..b827a1e07b6a 100644 --- a/bridges/source/jni_uno/jni_java2uno.cxx +++ b/bridges/source/jni_uno/jni_java2uno.cxx @@ -56,7 +56,7 @@ jobject Bridge::map_to_java( // register uno interface (*m_uno_env->registerInterface)( m_uno_env, reinterpret_cast< void ** >( &pUnoI ), - oid.pData, (typelib_InterfaceTypeDescription *)info->m_td.get() ); + oid.pData, reinterpret_cast<typelib_InterfaceTypeDescription *>(info->m_td.get()) ); // create java and register java proxy jvalue args2[ 8 ]; @@ -188,7 +188,7 @@ jobject Bridge::call_uno( return_size + (nParams * sizeof (largest)) ); void ** uno_args = (void **) mem; void * uno_ret = return_size == 0 ? 0 : (mem + (nParams * sizeof (void *))); - largest * uno_args_mem = (largest *) + largest * uno_args_mem = reinterpret_cast<largest *> (mem + (nParams * sizeof (void *)) + return_size); assert( (0 == nParams) || (nParams == jni->GetArrayLength( jo_args )) ); @@ -581,7 +581,7 @@ JNICALL Java_com_sun_star_bridges_jni_1uno_JNI_1proxy_dispatch_1call( // the thing that should not be... no method info found! throw BridgeRuntimeError( "calling undeclared function on interface " - + OUString::unacquired(&((typelib_TypeDescription *)td)->pTypeName) + + OUString::unacquired(&td->aBase.pTypeName) + ": " + method_name + jni.get_stack_trace() ); } catch (const BridgeRuntimeError & err) |