mirror of
https://github.com/wolfpld/tracy
synced 2026-02-15 13:42:17 +00:00
Don't use reserve_exact for temporary things.
This commit is contained in:
@@ -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 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user