summaryrefslogtreecommitdiff
path: root/svx/source/dialog/imapwnd.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/dialog/imapwnd.cxx')
-rw-r--r--svx/source/dialog/imapwnd.cxx20
1 files changed, 7 insertions, 13 deletions
diff --git a/svx/source/dialog/imapwnd.cxx b/svx/source/dialog/imapwnd.cxx
index 3cc57494dc0a..3a5d0b4ea6b4 100644
--- a/svx/source/dialog/imapwnd.cxx
+++ b/svx/source/dialog/imapwnd.cxx
@@ -193,10 +193,7 @@ SdrObject* IMapWindow::CreateObj( const IMapObject* pIMapObj )
// clipped on CanvasPane
aDrawRect.Intersection( aClipRect );
- pSdrObj = static_cast<SdrObject*>(
- new SdrRectObj(
- *pModel,
- aDrawRect));
+ pSdrObj = new SdrRectObj(*pModel, aDrawRect);
pCloneIMapObj.reset(static_cast<IMapObject*>(new IMapRectangleObject( *pIMapRectObj )));
}
break;
@@ -212,13 +209,12 @@ SdrObject* IMapWindow::CreateObj( const IMapObject* pIMapObj )
// limited to CanvasPane
aCircle.Intersection( aClipRect );
- pSdrObj = static_cast<SdrObject*>(
- new SdrCircObj(
+ pSdrObj = new SdrCircObj(
*pModel,
SdrCircKind::Full,
aCircle,
0,
- 36000));
+ 36000);
pCloneIMapObj.reset(static_cast<IMapObject*>(new IMapCircleObject( *pIMapCircleObj )));
}
break;
@@ -235,13 +231,12 @@ SdrObject* IMapWindow::CreateObj( const IMapObject* pIMapObj )
// clipped on CanvasPane
aDrawRect.Intersection( aClipRect );
- pSdrObj = static_cast<SdrObject*>(
- new SdrCircObj(
+ pSdrObj = new SdrCircObj(
*pModel,
SdrCircKind::Full,
aDrawRect,
0,
- 36000));
+ 36000);
}
else
{
@@ -253,11 +248,10 @@ SdrObject* IMapWindow::CreateObj( const IMapObject* pIMapObj )
basegfx::B2DPolygon aPolygon;
aPolygon.append(aDrawPoly.getB2DPolygon());
- pSdrObj = static_cast<SdrObject*>(
- new SdrPathObj(
+ pSdrObj = new SdrPathObj(
*pModel,
OBJ_POLY,
- basegfx::B2DPolyPolygon(aPolygon)));
+ basegfx::B2DPolyPolygon(aPolygon));
}
pCloneIMapObj.reset(static_cast<IMapObject*>(new IMapPolygonObject( *pIMapPolyObj )));