diff options
Diffstat (limited to 'cppu/source/uno/constr.hxx')
-rw-r--r-- | cppu/source/uno/constr.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cppu/source/uno/constr.hxx b/cppu/source/uno/constr.hxx index a174b805f749..10e12a933b83 100644 --- a/cppu/source/uno/constr.hxx +++ b/cppu/source/uno/constr.hxx @@ -101,12 +101,12 @@ inline void _defaultConstructData( case typelib_TypeClass_ENUM: if (pTypeDescr) { - *(sal_Int32 *)pMem = ((typelib_EnumTypeDescription *)pTypeDescr)->nDefaultEnumValue; + *(sal_Int32 *)pMem = reinterpret_cast<typelib_EnumTypeDescription *>(pTypeDescr)->nDefaultEnumValue; } else { TYPELIB_DANGER_GET( &pTypeDescr, pType ); - *(sal_Int32 *)pMem = ((typelib_EnumTypeDescription *)pTypeDescr)->nDefaultEnumValue; + *(sal_Int32 *)pMem = reinterpret_cast<typelib_EnumTypeDescription *>(pTypeDescr)->nDefaultEnumValue; TYPELIB_DANGER_RELEASE( pTypeDescr ); } break; @@ -114,12 +114,12 @@ inline void _defaultConstructData( case typelib_TypeClass_EXCEPTION: if (pTypeDescr) { - _defaultConstructStruct( pMem, (typelib_CompoundTypeDescription *)pTypeDescr ); + _defaultConstructStruct( pMem, reinterpret_cast<typelib_CompoundTypeDescription *>(pTypeDescr) ); } else { TYPELIB_DANGER_GET( &pTypeDescr, pType ); - _defaultConstructStruct( pMem, (typelib_CompoundTypeDescription *)pTypeDescr ); + _defaultConstructStruct( pMem, reinterpret_cast<typelib_CompoundTypeDescription *>(pTypeDescr) ); TYPELIB_DANGER_RELEASE( pTypeDescr ); } break; |