summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-10-21 09:12:47 +0200
committerNoel Grandin <noel@peralex.com>2014-10-23 12:36:14 +0200
commit50a8c89f36b3b8f2d029a0bedc1ed9362807321d (patch)
treec555ceefd72054d7af227427355dfac8baabe467 /oox
parentcb414252b8d5fcff516291ed4b9db75933e5331a (diff)
loplugin: cstylecast
Change-Id: I9134aff4f2e6bff43ebb78c605e0ff521eac6ffc
Diffstat (limited to 'oox')
-rw-r--r--oox/source/export/shapes.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/oox/source/export/shapes.cxx b/oox/source/export/shapes.cxx
index 25a8dbabd04a..8d394fe935e7 100644
--- a/oox/source/export/shapes.cxx
+++ b/oox/source/export/shapes.cxx
@@ -287,7 +287,7 @@ ShapeExport& ShapeExport::WriteCustomShape( Reference< XShape > xShape )
OUString sShapeType;
sal_uInt32 nMirrorFlags = 0;
MSO_SPT eShapeType = EscherPropertyContainer::GetCustomShapeType( xShape, nMirrorFlags, sShapeType );
- SdrObjCustomShape* pShape = (SdrObjCustomShape*) GetSdrObjectFromXShape( xShape );
+ SdrObjCustomShape* pShape = static_cast<SdrObjCustomShape*>( GetSdrObjectFromXShape( xShape ) );
bool bIsDefaultObject = EscherPropertyContainer::IsDefaultObject( pShape, eShapeType );
const char* sPresetShape = msfilter::util::GetOOXMLPresetGeometry( USS( sShapeType ) );
DBG(fprintf(stderr, "custom shape type: %s ==> %s\n", USS( sShapeType ), sPresetShape));
@@ -1064,7 +1064,7 @@ ShapeExport& ShapeExport::WriteOLE2Shape( Reference< XShape > xShape )
SdrObject* pSdrOLE2( GetSdrObjectFromXShape( xShape ) );
if ( pSdrOLE2 && pSdrOLE2->ISA( SdrOle2Obj ) )
{
- const Graphic* pGraphic = ((SdrOle2Obj*)pSdrOLE2)->GetGraphic();
+ const Graphic* pGraphic = static_cast<SdrOle2Obj*>(pSdrOLE2)->GetGraphic();
if ( pGraphic )
WriteGraphicObjectShapePart( xShape, pGraphic );
}