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

Some more loplugin:cstylecast: embeddedobj

Change-Id: Iea3b2ca4f2598c501206ab631f86d9aa44a0407c
üst aa99d57a
......@@ -409,7 +409,7 @@ void OleEmbeddedObject::InsertVisualCache_Impl( const uno::Reference< io::XStrea
// write 0xFFFFFFFF at the beginning
uno::Sequence< sal_Int8 > aData( 4 );
*( (sal_uInt32*)aData.getArray() ) = 0xFFFFFFFF;
*( reinterpret_cast<sal_uInt32*>(aData.getArray()) ) = 0xFFFFFFFF;
xTempOutStream->writeBytes( aData );
......@@ -440,7 +440,7 @@ void OleEmbeddedObject::InsertVisualCache_Impl( const uno::Reference< io::XStrea
xTempOutStream->writeBytes( aData );
// write l-index
*( (sal_uInt32*)aData.getArray() ) = 0xFFFFFFFF;
*( reinterpret_cast<sal_uInt32*>(aData.getArray()) ) = 0xFFFFFFFF;
xTempOutStream->writeBytes( aData );
// write adv. flags
......@@ -448,7 +448,7 @@ void OleEmbeddedObject::InsertVisualCache_Impl( const uno::Reference< io::XStrea
xTempOutStream->writeBytes( aData );
// write compression
*( (sal_uInt32*)aData.getArray() ) = 0x0;
*( reinterpret_cast<sal_uInt32*>(aData.getArray()) ) = 0x0;
xTempOutStream->writeBytes( aData );
// get the size
......
......@@ -424,7 +424,7 @@ void OwnView_Impl::CreateNative()
{
sal_uInt8 aClassID[] =
{ 0x00, 0x03, 0x00, 0x0C, 0x00, 0x00, 0x00, 0x00, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46 };
uno::Sequence< sal_Int8 > aPackageClassID( (sal_Int8*)aClassID, 16 );
uno::Sequence< sal_Int8 > aPackageClassID( reinterpret_cast<sal_Int8*>(aClassID), 16 );
uno::Reference< io::XStream > xSubStream;
xNameAccess->getByName( aSubStreamName ) >>= xSubStream;
......
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