Rename internal enum to avoid #define conflicts.

This commit is contained in:
Bartosz Taudul 2017-09-28 21:20:33 +02:00
parent 6ae62e6e5a
commit b9aa10913a
3 changed files with 3 additions and 3 deletions

View File

@ -124,7 +124,7 @@ void Profiler::ZoneName( uint64_t id, QueueZoneName&& data )
void Profiler::FrameMark() void Profiler::FrameMark()
{ {
QueueItem item; QueueItem item;
item.hdr.type = QueueType::FrameMark; item.hdr.type = QueueType::FrameMarkMsg;
item.hdr.id = (uint64_t)GetTime(); item.hdr.id = (uint64_t)GetTime();
s_queue.enqueue( s_token, std::move( item ) ); s_queue.enqueue( s_token, std::move( item ) );
} }

View File

@ -13,7 +13,7 @@ enum class QueueType : uint8_t
StringData, StringData,
ThreadName, ThreadName,
CustomStringData, CustomStringData,
FrameMark, FrameMarkMsg,
SourceLocation, SourceLocation,
ZoneText, ZoneText,
ZoneName, ZoneName,

View File

@ -239,7 +239,7 @@ void View::Process( const QueueItem& ev )
case QueueType::ZoneEnd: case QueueType::ZoneEnd:
ProcessZoneEnd( ev.hdr.id, ev.zoneEnd ); ProcessZoneEnd( ev.hdr.id, ev.zoneEnd );
break; break;
case QueueType::FrameMark: case QueueType::FrameMarkMsg:
ProcessFrameMark( ev.hdr.id ); ProcessFrameMark( ev.hdr.id );
break; break;
case QueueType::SourceLocation: case QueueType::SourceLocation: