mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 01:04:36 +00:00
Use custom vector swap.
This commit is contained in:
parent
6c5efbfdce
commit
2e6ac050f4
@ -2633,7 +2633,7 @@ void Worker::ProcessZoneEnd( const QueueZoneEnd& ev )
|
||||
Vector<ZoneEvent*> fitVec;
|
||||
fitVec.reserve_exact( sz, m_slab );
|
||||
memcpy( fitVec.data(), childVec.data(), sz * sizeof( ZoneEvent* ) );
|
||||
std::swap( fitVec, childVec );
|
||||
fitVec.swap( childVec );
|
||||
m_data.zoneVectorCache.push_back( std::move( fitVec ) );
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user