summaryrefslogtreecommitdiff
path: root/embeddedobj
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-01-17 18:44:33 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-01-20 09:06:47 +0100
commit924048531186f344b74ce663648b075c5d3d89a5 (patch)
tree4d0e05bb5cc19dd82903a7cdf7eea5ed7ade1154 /embeddedobj
parentaa99d57ae32aa62dca9d7574ab3e4216b3b865e6 (diff)
Some more loplugin:cstylecast: embeddedobj
Change-Id: Iea3b2ca4f2598c501206ab631f86d9aa44a0407c
Diffstat (limited to 'embeddedobj')
-rw-r--r--embeddedobj/source/msole/olepersist.cxx6
-rw-r--r--embeddedobj/source/msole/ownview.cxx2
2 files changed, 4 insertions, 4 deletions
diff --git a/embeddedobj/source/msole/olepersist.cxx b/embeddedobj/source/msole/olepersist.cxx
index df15f97499de..00a81617ff3c 100644
--- a/embeddedobj/source/msole/olepersist.cxx
+++ b/embeddedobj/source/msole/olepersist.cxx
@@ -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
diff --git a/embeddedobj/source/msole/ownview.cxx b/embeddedobj/source/msole/ownview.cxx
index f572d02ba6d9..758e0811e0b5 100644
--- a/embeddedobj/source/msole/ownview.cxx
+++ b/embeddedobj/source/msole/ownview.cxx
@@ -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;