diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-08-16 16:55:36 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-08-16 21:52:32 +0200 |
commit | bc69fc451c0c60b5054c2bfd1f79778b056778c2 (patch) | |
tree | 554a3cb26eb6a9bbba4428b777c38d58621222a5 /svx | |
parent | a7e2d3280f17d4cd8afd2f4006855a4fea129034 (diff) |
Reserve vector capacity in advance
Change-Id: I2ee5913a274eecf86ad6bbf19b99e1fe61f0ade7
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/customshapes/EnhancedCustomShape2d.cxx | 1 |
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 ) { |