summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-03-06 12:16:12 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-03-06 12:16:12 +0000
commit27c5268dd9908b749ca251e172944278d761a335 (patch)
tree271bc17dd27ffacba00651edf93412e877561877 /filter
parente214f0bd5a2a3edc331dae8d1695f4cc9f10b98a (diff)
reserve the known amount we'll append
Change-Id: Ib476453eb3c527cc8c3be679ebc6267a0b53d10e
Diffstat (limited to 'filter')
-rw-r--r--filter/source/graphicfilter/ipict/shape.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/filter/source/graphicfilter/ipict/shape.cxx b/filter/source/graphicfilter/ipict/shape.cxx
index 5aca6d47dba8..99b8719ad623 100644
--- a/filter/source/graphicfilter/ipict/shape.cxx
+++ b/filter/source/graphicfilter/ipict/shape.cxx
@@ -240,6 +240,7 @@ void drawPolygon(VirtualDevice *dev, bool drawFrame, tools::Polygon const &orig,
using namespace basegfx;
B2DPolygon poly;
+ poly.reserve(numPt);
// Note: a polygon can be open, so we must not close it when we draw the frame
for (int i = 0; i < numPt; i++) {
Point const &pt = orig.GetPoint(i);