summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2014-08-16 16:55:36 +0200
committerMatteo Casalin <matteo.casalin@yahoo.com>2014-08-16 21:52:32 +0200
commitbc69fc451c0c60b5054c2bfd1f79778b056778c2 (patch)
tree554a3cb26eb6a9bbba4428b777c38d58621222a5 /svx
parenta7e2d3280f17d4cd8afd2f4006855a4fea129034 (diff)
Reserve vector capacity in advance
Change-Id: I2ee5913a274eecf86ad6bbf19b99e1fe61f0ade7
Diffstat (limited to 'svx')
-rw-r--r--svx/source/customshapes/EnhancedCustomShape2d.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/svx/source/customshapes/EnhancedCustomShape2d.cxx b/svx/source/customshapes/EnhancedCustomShape2d.cxx
index 7496eab48568..175b2a0be804 100644
--- a/svx/source/customshapes/EnhancedCustomShape2d.cxx
+++ b/svx/source/customshapes/EnhancedCustomShape2d.cxx
@@ -2248,6 +2248,7 @@ SdrObject* EnhancedCustomShape2d::CreatePathObj( bool bLineGeometryNeededOnly )
if ( bSortFilledObjectsToBack )
{
std::vector< SdrPathObj* > vTempList;
+ vTempList.reserve(vObjectList.size());
for ( size_t i = 0; i < vObjectList.size(); ++i )
{