summaryrefslogtreecommitdiff
path: root/bridges/source/jni_uno
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-02 11:25:30 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-02 11:25:30 +0200
commit6780db685ed0119fcf31bd343d34c01936f7968c (patch)
tree3c28102c7b322bec34fb0012fcb1374a643219cd /bridges/source/jni_uno
parentb000faba864c0b60cbf86a48356fa81a707545a3 (diff)
loplugin:cstylecast: deal with those that are (technically) const_cast
Change-Id: I73626dd83aed5a226b67b5b18049ca82c86f9b3b
Diffstat (limited to 'bridges/source/jni_uno')
-rw-r--r--bridges/source/jni_uno/jni_helper.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/bridges/source/jni_uno/jni_helper.h b/bridges/source/jni_uno/jni_helper.h
index e466e5a3d8f1..bfbfd7741cf7 100644
--- a/bridges/source/jni_uno/jni_helper.h
+++ b/bridges/source/jni_uno/jni_helper.h
@@ -45,7 +45,7 @@ inline void jstring_to_ustring(
rtl_mem::allocate(
sizeof (rtl_uString) + (len * sizeof (sal_Unicode)) ) );
rtl_uString * ustr = reinterpret_cast<rtl_uString *>(mem.get());
- jni->GetStringRegion( jstr, 0, len, (jchar *) ustr->buffer );
+ jni->GetStringRegion( jstr, 0, len, reinterpret_cast<jchar *>(ustr->buffer) );
jni.ensure_no_exception();
ustr->refCount = 1;
ustr->length = len;
@@ -68,7 +68,7 @@ inline OUString jstring_to_oustring(
inline jstring ustring_to_jstring(
JNI_context const & jni, rtl_uString const * ustr )
{
- jstring jstr = jni->NewString( (jchar const *) ustr->buffer, ustr->length );
+ jstring jstr = jni->NewString( reinterpret_cast<jchar const *>(ustr->buffer), ustr->length );
jni.ensure_no_exception();
return jstr;
}