From 63e4f6fa046deecf717e2c03cfa5a5385c082c21 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 30 Apr 2018 03:30:19 +0200 Subject: [PATCH] Directly store values. --- server/TracyWorker.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index 2623964b..62fa1366 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -2035,7 +2035,9 @@ void Worker::ReadTimeline( FileRead& f, Vector& vec, uint16_t thread #ifndef TRACY_NO_STATISTICS auto it = m_data.sourceLocationZones.find( zone->srcloc ); assert( it != m_data.sourceLocationZones.end() ); - it->second.zones.push_back( ZoneThreadData { zone, thread } ); + auto& ztd = it->second.zones.push_next(); + ztd.zone = zone; + ztd.thread = thread; if( zone->end >= 0 ) {