Don't use reserve_exact for temporary things.

This commit is contained in:
Bartosz Taudul 2019-02-15 01:43:30 +01:00
parent 127be8e995
commit 1cefd4d8ac

View File

@ -4202,7 +4202,7 @@ void View::DrawZoneInfoWindow()
auto msz = cmap.size(); auto msz = cmap.size();
Vector<ChildGroup*> cgvec; Vector<ChildGroup*> cgvec;
cgvec.reserve_exact( msz ); cgvec.reserve_and_use( msz );
size_t idx = 0; size_t idx = 0;
for( auto& it : cmap ) for( auto& it : cmap )
{ {
@ -4608,7 +4608,7 @@ void View::DrawGpuInfoWindow()
auto msz = cmap.size(); auto msz = cmap.size();
Vector<ChildGroup*> cgvec; Vector<ChildGroup*> cgvec;
cgvec.reserve_exact( msz ); cgvec.reserve_and_use( msz );
size_t idx = 0; size_t idx = 0;
for( auto& it : cmap ) for( auto& it : cmap )
{ {