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

Some more loplugin:cstylecast: framework

Change-Id: Iebd80b596bcc1f740ff9f3b0f168472144cacbed
üst 74b0c5d0
......@@ -35,7 +35,7 @@ namespace framework
static Sequence< sal_Int8 > impl_getStaticIdentifier()
{
static const sal_uInt8 pGUID[16] = { 0x46, 0xAD, 0x69, 0xFB, 0xA7, 0xBE, 0x44, 0x83, 0xB2, 0xA7, 0xB3, 0xEC, 0x59, 0x4A, 0xB7, 0x00 };
static ::com::sun::star::uno::Sequence< sal_Int8 > seqID((const sal_Int8*)pGUID,16);
static ::com::sun::star::uno::Sequence< sal_Int8 > seqID(reinterpret_cast<const sal_Int8*>(pGUID), 16);
return seqID;
}
......
......@@ -40,7 +40,7 @@ namespace framework
static Sequence< sal_Int8 > impl_getStaticIdentifier()
{
static const sal_uInt8 pGUID[16] = { 0x17, 0x0F, 0xA2, 0xC9, 0xCA, 0x50, 0x4A, 0xD3, 0xA6, 0x3B, 0x39, 0x99, 0xC5, 0x96, 0x43, 0x27 };
static ::com::sun::star::uno::Sequence< sal_Int8 > seqID((const sal_Int8*)pGUID,16);
static ::com::sun::star::uno::Sequence< sal_Int8 > seqID(reinterpret_cast<const sal_Int8*>(pGUID), 16);
return seqID;
}
......
......@@ -82,8 +82,8 @@ Sequence< Any > make_seq_out_of_struct(
}
::std::vector< Any > vec;
vec.reserve( ((typelib_CompoundTypeDescription *)pTD)->nMembers ); // good guess
flatten_struct_members( &vec, val.getValue(), (typelib_CompoundTypeDescription *)pTD );
vec.reserve( reinterpret_cast<typelib_CompoundTypeDescription *>(pTD)->nMembers ); // good guess
flatten_struct_members( &vec, val.getValue(), reinterpret_cast<typelib_CompoundTypeDescription *>(pTD) );
TYPELIB_DANGER_RELEASE( pTD );
return Sequence< Any >( &vec[ 0 ], vec.size() );
}
......
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