From b7fd0bdc9c49d8d7465d5255312c2be0d820d26a Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 29 Jan 2019 21:53:56 +0100 Subject: [PATCH] Use proper type. --- profiler/src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index ed448b76..a859efb4 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -307,14 +307,14 @@ int main( int argc, char** argv ) if( connectClicked && *addr && !loadThread.joinable() ) { std::string addrStr( addr ); - auto it = connHistMap.find( addr ); + auto it = connHistMap.find( addrStr ); if( it != connHistMap.end() ) { it->second++; } else { - connHistMap.emplace( std::move( addr ), 1 ); + connHistMap.emplace( std::move( addrStr ), 1 ); } connHistVec = RebuildConnectionHistory( connHistMap );