diff options
Diffstat (limited to 'bridges/source/jni_uno/jni_java2uno.cxx')
-rw-r--r-- | bridges/source/jni_uno/jni_java2uno.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bridges/source/jni_uno/jni_java2uno.cxx b/bridges/source/jni_uno/jni_java2uno.cxx index 5c992f167cbb..cde61c4ce8d0 100644 --- a/bridges/source/jni_uno/jni_java2uno.cxx +++ b/bridges/source/jni_uno/jni_java2uno.cxx @@ -180,12 +180,12 @@ jobject Bridge::call_uno( } #ifdef BROKEN_ALLOCA - char * mem = (char *) malloc( + char * mem = static_cast<char *>(malloc( #else - char * mem = (char *) alloca( + char * mem = static_cast<char *>(alloca( #endif (nParams * sizeof (void *)) + - return_size + (nParams * sizeof (largest)) ); + return_size + (nParams * sizeof (largest)) )); void ** uno_args = reinterpret_cast<void **>(mem); void * uno_ret = return_size == 0 ? 0 : (mem + (nParams * sizeof (void *))); largest * uno_args_mem = reinterpret_cast<largest *> @@ -452,7 +452,7 @@ JNICALL Java_com_sun_star_bridges_jni_1uno_JNI_1proxy_dispatch_1call( if (typelib_TypeClass_INTERFACE == uno_ret.pType->eTypeClass) { uno_Interface * pUnoRet = - (uno_Interface *) uno_ret.pReserved; + static_cast<uno_Interface *>(uno_ret.pReserved); if (0 != pUnoRet) { try |