summaryrefslogtreecommitdiff
path: root/bridges
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
parentb000faba864c0b60cbf86a48356fa81a707545a3 (diff)
loplugin:cstylecast: deal with those that are (technically) const_cast
Change-Id: I73626dd83aed5a226b67b5b18049ca82c86f9b3b
Diffstat (limited to 'bridges')
-rw-r--r--bridges/source/cpp_uno/gcc3_macosx_x86-64/except.cxx2
-rw-r--r--bridges/source/jni_uno/jni_helper.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/bridges/source/cpp_uno/gcc3_macosx_x86-64/except.cxx b/bridges/source/cpp_uno/gcc3_macosx_x86-64/except.cxx
index d79411070dad..fb579a201888 100644
--- a/bridges/source/cpp_uno/gcc3_macosx_x86-64/except.cxx
+++ b/bridges/source/cpp_uno/gcc3_macosx_x86-64/except.cxx
@@ -223,7 +223,7 @@ std::type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr )
{
// ensure availability of base
std::type_info * base_rtti = getRTTI(
- (typelib_CompoundTypeDescription *)pTypeDescr->pBaseTypeDescription );
+ pTypeDescr->pBaseTypeDescription );
rtti = createFake_si_class_type_info(rttiName, base_rtti);
}
else
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;
}