diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-26 15:27:44 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-26 15:33:28 +0100 |
commit | a64f0ab13a6190a701c375ed2197af25538a5c72 (patch) | |
tree | 1c7b4c3b1d931473d0ddb814998ebd522c062999 /bridges | |
parent | 0511c867911695154ea677a89e9f40264e41467a (diff) |
const_cast: convert some C-style casts and remove some redundant ones
Change-Id: Ic97da0ff2b0f62e0351271bf03329b1903b8d45c
Diffstat (limited to 'bridges')
-rw-r--r-- | bridges/source/jni_uno/jni_data.cxx | 2 | ||||
-rw-r--r-- | bridges/source/jni_uno/jni_uno2java.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bridges/source/jni_uno/jni_data.cxx b/bridges/source/jni_uno/jni_data.cxx index 6d2e2dd4c850..67689cee5cd7 100644 --- a/bridges/source/jni_uno/jni_data.cxx +++ b/bridges/source/jni_uno/jni_data.cxx @@ -2307,7 +2307,7 @@ void Bridge::map_to_java( if (0 < nElements) { - char * p = (char *)seq->elements; + char * p = const_cast<char *>(seq->elements); sal_Int32 nSize = element_info->m_td.get()->nSize; for ( sal_Int32 nPos = 0; nPos < nElements; ++nPos ) { diff --git a/bridges/source/jni_uno/jni_uno2java.cxx b/bridges/source/jni_uno/jni_uno2java.cxx index a9798e333299..9336d053496a 100644 --- a/bridges/source/jni_uno/jni_uno2java.cxx +++ b/bridges/source/jni_uno/jni_uno2java.cxx @@ -496,7 +496,7 @@ uno_Interface * Bridge::map_to_uno( { // refcount initially 1 pUnoI = new UNO_proxy( - jni, const_cast< Bridge * >( this ), + jni, this, javaI, static_cast<jstring>(jo_oid.get()), oid, info ); (*m_uno_env->registerProxyInterface)( |