summaryrefslogtreecommitdiff
path: root/basegfx/inc
diff options
context:
space:
mode:
authorhdu <duerr@sun.com>2009-10-21 11:06:38 +0200
committerhdu <duerr@sun.com>2009-10-21 11:06:38 +0200
commitb1419a4de2ff47d32cd7d93b4042727b05435fad (patch)
tree0b357493a17d7ebec87a5709ea48ab76369031b8 /basegfx/inc
parent47185865ba1217151a0244de5855e5574114b327 (diff)
#i106127# perf: add and use B2DPolygon::reserve() to prevent many reallocations
Diffstat (limited to 'basegfx/inc')
-rw-r--r--basegfx/inc/basegfx/polygon/b2dpolygon.hxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/basegfx/inc/basegfx/polygon/b2dpolygon.hxx b/basegfx/inc/basegfx/polygon/b2dpolygon.hxx
index ee12d55d460b..1d5f8aaa4356 100644
--- a/basegfx/inc/basegfx/polygon/b2dpolygon.hxx
+++ b/basegfx/inc/basegfx/polygon/b2dpolygon.hxx
@@ -89,6 +89,7 @@ namespace basegfx
/// Coordinate insert/append
void insert(sal_uInt32 nIndex, const basegfx::B2DPoint& rPoint, sal_uInt32 nCount = 1);
void append(const basegfx::B2DPoint& rPoint, sal_uInt32 nCount = 1);
+ void reserve(sal_uInt32 nCount);
/// Basic ControlPoint interface
basegfx::B2DPoint getPrevControlPoint(sal_uInt32 nIndex) const;