Fix std::move() usage.

This commit is contained in:
Bartosz Taudul 2023-04-16 16:47:47 +02:00
parent a0221c8660
commit f60e51c91b
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3
2 changed files with 2 additions and 2 deletions

View File

@ -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; } );
} );
} );
}

View File

@ -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 )
{