mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Use proper type in StringKey initialization.
This commit is contained in:
parent
4cd36ecdea
commit
259672abc6
@ -685,7 +685,7 @@ Worker::Worker( FileRead& f, EventType::Type eventMask, bool bgTasks )
|
||||
auto dst = m_slab.Alloc<char>( ssz+1 );
|
||||
f.Read( dst, ssz );
|
||||
dst[ssz] = '\0';
|
||||
m_data.stringMap.emplace( charutil::StringKey { dst, ssz }, i );
|
||||
m_data.stringMap.emplace( charutil::StringKey { dst, size_t( ssz ) }, i );
|
||||
m_data.stringData[i] = ( dst );
|
||||
pointerMap.emplace( ptr, dst );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user