From 50a8c89f36b3b8f2d029a0bedc1ed9362807321d Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 21 Oct 2014 09:12:47 +0200 Subject: loplugin: cstylecast Change-Id: I9134aff4f2e6bff43ebb78c605e0ff521eac6ffc --- oox/source/export/shapes.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'oox/source') 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( 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(pSdrOLE2)->GetGraphic(); if ( pGraphic ) WriteGraphicObjectShapePart( xShape, pGraphic ); } -- cgit