summaryrefslogtreecommitdiff
path: root/bridges
diff options
context:
space:
mode:
Diffstat (limited to 'bridges')
-rw-r--r--bridges/source/jni_uno/jni_data.cxx2
-rw-r--r--bridges/source/jni_uno/jni_uno2java.cxx2
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)(