diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-28 18:58:23 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-28 19:09:17 +0100 |
commit | 6a6991ed2ea628da2a7bf43a07963803445e85a9 (patch) | |
tree | 4bd7b89eaf4c68d05a923a56cab987fb5880a6dc /bridges/source/jni_uno/jni_java2uno.cxx | |
parent | c3fb36ed26a6c8dce0a8026ef8b75190955d2443 (diff) |
Clean up C-style casts from pointers to void
Change-Id: I5c0372bce2564e58c78daf544cfcb106387c6894
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 |