Provide default value for sourceLocationZonesReady.

This commit is contained in:
Bartosz Taudul 2020-02-27 00:26:58 +01:00
parent 56dce646cc
commit c99537c402
2 changed files with 1 additions and 2 deletions

View File

@ -657,7 +657,6 @@ Worker::Worker( FileRead& f, EventType::Type eventMask, bool bgTasks )
} }
#ifndef TRACY_NO_STATISTICS #ifndef TRACY_NO_STATISTICS
m_data.sourceLocationZonesReady = false;
m_data.sourceLocationZones.reserve( sle + sz ); m_data.sourceLocationZones.reserve( sle + sz );
f.Read( sz ); f.Read( sz );

View File

@ -208,7 +208,7 @@ private:
Vector<uint64_t> sourceLocationExpand; Vector<uint64_t> sourceLocationExpand;
#ifndef TRACY_NO_STATISTICS #ifndef TRACY_NO_STATISTICS
unordered_flat_map<int16_t, SourceLocationZones> sourceLocationZones; unordered_flat_map<int16_t, SourceLocationZones> sourceLocationZones;
bool sourceLocationZonesReady; bool sourceLocationZonesReady = false;
#else #else
unordered_flat_map<int16_t, uint64_t> sourceLocationZonesCnt; unordered_flat_map<int16_t, uint64_t> sourceLocationZonesCnt;
#endif #endif