Kaydet (Commit) 6780db68 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:cstylecast: deal with those that are (technically) const_cast

Change-Id: I73626dd83aed5a226b67b5b18049ca82c86f9b3b
üst b000faba
......@@ -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
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment