mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 14:44:34 +00:00
Fix std::move() usage.
This commit is contained in:
parent
a0221c8660
commit
f60e51c91b
@ -584,7 +584,7 @@ static void DrawContents()
|
||||
HttpRequest( "nereid.pl", "/tracy/notes", 8099, [] ( int size, char* data ) {
|
||||
std::string notes( data, data+size );
|
||||
delete[] data;
|
||||
RunOnMainThread( [notes = std::move( notes )] { releaseNotes = std::move( notes ); tracy::s_wasActive = true; } );
|
||||
RunOnMainThread( [notes = std::move( notes )] () mutable { releaseNotes = std::move( notes ); tracy::s_wasActive = true; } );
|
||||
} );
|
||||
} );
|
||||
}
|
||||
|
@ -6529,7 +6529,7 @@ void Worker::ProcessSymbolInformation( const QueueSymbolInformation& ev )
|
||||
sd.callLine = it->second.line;
|
||||
sd.isInline = it->second.isInline;
|
||||
sd.size.SetVal( it->second.size );
|
||||
m_data.symbolMap.emplace( ev.symAddr, std::move( sd ) );
|
||||
m_data.symbolMap.emplace( ev.symAddr, sd );
|
||||
|
||||
if( m_codeTransfer && it->second.size > 0 && it->second.size <= 128*1024 )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user