Kaydet (Commit) bc69fc45 authored tarafından Matteo Casalin's avatar Matteo Casalin

Reserve vector capacity in advance

Change-Id: I2ee5913a274eecf86ad6bbf19b99e1fe61f0ade7
üst a7e2d328
...@@ -2248,6 +2248,7 @@ SdrObject* EnhancedCustomShape2d::CreatePathObj( bool bLineGeometryNeededOnly ) ...@@ -2248,6 +2248,7 @@ SdrObject* EnhancedCustomShape2d::CreatePathObj( bool bLineGeometryNeededOnly )
if ( bSortFilledObjectsToBack ) if ( bSortFilledObjectsToBack )
{ {
std::vector< SdrPathObj* > vTempList; std::vector< SdrPathObj* > vTempList;
vTempList.reserve(vObjectList.size());
for ( size_t i = 0; i < vObjectList.size(); ++i ) for ( size_t i = 0; i < vObjectList.size(); ++i )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment