summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-04-02 14:59:01 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-04-02 15:27:10 +0100
commit9e0bcd809a5ea7b93201172a1ce000d133484d1b (patch)
tree9c9b44af6bfd6540a934c96206abad70154b4394 /filter
parent67bf8ecc6fb0018bf196bc59df736d2cbda7d053 (diff)
drop the weird casting
Change-Id: I62d4eb8c3bdc9026484242463dc278094f8941f4
Diffstat (limited to 'filter')
-rw-r--r--filter/source/graphicfilter/icgm/actimpr.cxx4
1 files changed, 2 insertions, 2 deletions
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<Point*>(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<sal_Int8*>(mpPoints);
+ delete[] mpPoints;
delete[] mpFlags;
delete[] mpGroupLevel;
delete mpGradient;