From 9e0bcd809a5ea7b93201172a1ce000d133484d1b Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 2 Apr 2017 14:59:01 +0100 Subject: drop the weird casting Change-Id: I62d4eb8c3bdc9026484242463dc278094f8941f4 --- filter/source/graphicfilter/icgm/actimpr.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'filter') diff --git a/filter/source/graphicfilter/icgm/actimpr.cxx b/filter/source/graphicfilter/icgm/actimpr.cxx index 6d7b1364b22b..66ff8df07ba9 100644 --- a/filter/source/graphicfilter/icgm/actimpr.cxx +++ b/filter/source/graphicfilter/icgm/actimpr.cxx @@ -60,7 +60,7 @@ CGMImpressOutAct::CGMImpressOutAct( CGM& rCGM, const uno::Reference< frame::XMod mnCurrentPage = 0; mnGroupActCount = mnGroupLevel = 0; mpGroupLevel = new sal_uInt32[CGM_OUTACT_MAX_GROUP_LEVEL] (); - mpPoints = reinterpret_cast(new sal_Int8[ 0x2000 * sizeof( Point ) ]); + mpPoints = new Point[ 0x2000 ]; mpFlags = new PolyFlags[ 0x2000 ]; mnIndex = 0; @@ -91,7 +91,7 @@ CGMImpressOutAct::CGMImpressOutAct( CGM& rCGM, const uno::Reference< frame::XMod CGMImpressOutAct::~CGMImpressOutAct() { - delete[] reinterpret_cast(mpPoints); + delete[] mpPoints; delete[] mpFlags; delete[] mpGroupLevel; delete mpGradient; -- cgit