From f60e51c91b6c81f7f80ae9f03cb17ed9cd537428 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 16 Apr 2023 16:47:47 +0200 Subject: [PATCH] Fix std::move() usage. --- profiler/src/main.cpp | 2 +- server/TracyWorker.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index 399c9154..73be2d22 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -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; } ); } ); } ); } diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index 6b670753..eeb44d1a 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -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 ) {