Skip to content

Commit

Permalink
Use correct constructor for StringData
Browse files Browse the repository at this point in the history
  • Loading branch information
eibach committed Dec 3, 2024
1 parent d8ea926 commit 1aeb661
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/TracyWorker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -752,11 +752,11 @@ Worker::Worker( FileRead& f, EventType::Type eventMask, bool bgTasks, bool allow

if( m_allowStringModification )
{
m_data.stringData.push_back( { dst, ssz } );
m_data.stringData.push_back( StringData(dst, ssz) );
}
else
{
m_data.stringData[i] = { dst, ssz };
m_data.stringData[i] = StringData(dst, ssz );
}

pointerMap.emplace( ptr, dst );
Expand Down

0 comments on commit 1aeb661

Please sign in to comment.