mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Don't use reserve_exact for temporary things.
This commit is contained in:
parent
127be8e995
commit
1cefd4d8ac
@ -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 )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user