mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08: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();
|
||||
Vector<ChildGroup*> cgvec;
|
||||
cgvec.reserve_exact( msz );
|
||||
cgvec.reserve_and_use( msz );
|
||||
size_t idx = 0;
|
||||
for( auto& it : cmap )
|
||||
{
|
||||
@ -4608,7 +4608,7 @@ void View::DrawGpuInfoWindow()
|
||||
|
||||
auto msz = cmap.size();
|
||||
Vector<ChildGroup*> cgvec;
|
||||
cgvec.reserve_exact( msz );
|
||||
cgvec.reserve_and_use( msz );
|
||||
size_t idx = 0;
|
||||
for( auto& it : cmap )
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user