mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Don't check if vector is empty, if we're sure it's not.
This commit is contained in:
parent
8aeba9dc79
commit
d2a53b79d7
@ -1807,7 +1807,7 @@ Worker::Worker( FileRead& f, EventType::Type eventMask, bool bgTasks )
|
|||||||
if( ptr->child < 0 ) break;
|
if( ptr->child < 0 ) break;
|
||||||
ptr = &GetGhostChildrenMutable( ptr->child ).back();
|
ptr = &GetGhostChildrenMutable( ptr->child ).back();
|
||||||
}
|
}
|
||||||
auto& zone = vec->push_next();
|
auto& zone = vec->push_next_non_empty();
|
||||||
zone.start.SetVal( time );
|
zone.start.SetVal( time );
|
||||||
zone.end.SetVal( time + m_samplingPeriod );
|
zone.end.SetVal( time + m_samplingPeriod );
|
||||||
zone.frame.SetVal( fid );
|
zone.frame.SetVal( fid );
|
||||||
|
Loading…
Reference in New Issue
Block a user