From e842bcdfedeb1d2cf29f47168e9f4d64e315f2f3 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Tue, 23 Aug 2011 15:24:44 +0200 Subject: [PATCH] No need to if the delete --- core/textpage.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/core/textpage.cpp b/core/textpage.cpp index 96893acac..1ea77542d 100644 --- a/core/textpage.cpp +++ b/core/textpage.cpp @@ -1778,10 +1778,8 @@ void TextPagePrivate::XYCutForBoundingBoxes(int tcx, int tcy) tree.insert(i+1,node2); } - if(proj_on_xaxis) - delete []proj_on_xaxis; - if(proj_on_yaxis) - delete []proj_on_yaxis; + delete[] proj_on_xaxis; + delete[] proj_on_yaxis; } TextList tmp;