Don't check if vector is empty, if we're sure it's not.

This commit is contained in:
Bartosz Taudul 2020-03-21 17:59:09 +01:00
parent 8aeba9dc79
commit d2a53b79d7

View File

@ -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 );