summaryrefslogtreecommitdiff
path: root/sd/source/filter/eppt/eppt.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-28 19:06:19 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-28 19:09:25 +0100
commit51ec44fe04de4cad43a6bbd8dae4411a763c1e7e (patch)
treea1cd4bde7d2e1888ecb2287a9060aa7d045f44ef /sd/source/filter/eppt/eppt.cxx
parent8dee9e90f76b5b0906520f4eccde7ae4897c1c41 (diff)
Clean up C-style casts from pointers to void
Change-Id: I57277cd1356a99ee7c806d84a9446936d13a87c0
Diffstat (limited to 'sd/source/filter/eppt/eppt.cxx')
-rw-r--r--sd/source/filter/eppt/eppt.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/sd/source/filter/eppt/eppt.cxx b/sd/source/filter/eppt/eppt.cxx
index 637d6ec14c87..d4f0640f234e 100644
--- a/sd/source/filter/eppt/eppt.cxx
+++ b/sd/source/filter/eppt/eppt.cxx
@@ -193,7 +193,7 @@ void PPTWriter::ImplWriteSlide( sal_uInt32 nPageNum, sal_uInt32 nMasterNum, sal_
aAny >>= bVisible;
if ( GetPropertyValue( aAny, mXPagePropSet, OUString( "Change" ) ) )
{
- switch ( *(sal_Int32*)aAny.getValue() )
+ switch ( *static_cast<sal_Int32 const *>(aAny.getValue()) )
{
case 1 : // automatic
mnDiaMode++;
@@ -270,7 +270,7 @@ void PPTWriter::ImplWriteSlide( sal_uInt32 nPageNum, sal_uInt32 nMasterNum, sal_
nBuildFlags |= 256;
if ( GetPropertyValue( aAny, mXPagePropSet, OUString( "Duration" ) ) )// duration of this slide
- nSlideTime = *(sal_Int32*)aAny.getValue() << 10; // in ticks
+ nSlideTime = *static_cast<sal_Int32 const *>(aAny.getValue()) << 10; // in ticks
mpPptEscherEx->AddAtom( 16, EPP_SSSlideInfoAtom );
mpStrm->WriteInt32( nSlideTime ) // standtime in ticks
@@ -619,7 +619,7 @@ void PPTWriter::ImplCreateHeaderFooters( ::com::sun::star::uno::Reference< ::com
}
if ( PropValue::GetPropertyValue( aAny, rXPagePropSet, OUString( "DateTimeFormat" ), true ) )
{
- sal_Int32 nFormat = *(sal_Int32*)aAny.getValue();
+ sal_Int32 nFormat = *static_cast<sal_Int32 const *>(aAny.getValue());
SvxDateFormat eDateFormat = (SvxDateFormat)( nFormat & 0xf );
SvxTimeFormat eTimeFormat = (SvxTimeFormat)( ( nFormat >> 4 ) & 0xf );
switch( eDateFormat )
@@ -783,7 +783,7 @@ bool PPTWriter::ImplCreateDocument()
if ( ImplGetPropertyValue( OUString( "CustomShow" ) ) )
{
- aCustomShow = ( *(OUString*)mAny.getValue() );
+ aCustomShow = *static_cast<OUString const *>(mAny.getValue());
if ( !aCustomShow.isEmpty() )
{
nFlags |= 8;
@@ -793,7 +793,7 @@ bool PPTWriter::ImplCreateDocument()
{
if ( ImplGetPropertyValue( OUString( "FirstPage" ) ) )
{
- OUString aSlideName( *(OUString*)mAny.getValue() );
+ OUString aSlideName( *static_cast<OUString const *>(mAny.getValue()) );
std::vector<OUString>::const_iterator pIter = std::find(
maSlideNameList.begin(),maSlideNameList.end(),aSlideName);
@@ -1221,7 +1221,7 @@ void PPTWriter::ImplWriteBackground( ::com::sun::star::uno::Reference< ::com::su
{
if ( ImplGetPropertyValue( rXPropSet, OUString( "FillColor" ) ) )
{
- nFillColor = mpPptEscherEx->GetColor( *((sal_uInt32*)mAny.getValue()) );
+ nFillColor = mpPptEscherEx->GetColor( *static_cast<sal_uInt32 const *>(mAny.getValue()) );
nFillBackColor = nFillColor ^ 0xffffff;
}
} // PASSTHROUGH INTENDED
@@ -1252,7 +1252,7 @@ void PPTWriter::ImplWriteVBA()
nLen -= 8;
mnVBAOleOfs = mpStrm->Tell();
mpPptEscherEx->BeginAtom();
- mpStrm->Write( (sal_Int8*)mpVBA->GetData() + 8, nLen );
+ mpStrm->Write( static_cast<sal_Int8 const *>(mpVBA->GetData()) + 8, nLen );
mpPptEscherEx->EndAtom( EPP_ExOleObjStg, 0, 1 );
}
}