mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
Use proper type.
This commit is contained in:
parent
1b3f10148d
commit
b7fd0bdc9c
@ -307,14 +307,14 @@ int main( int argc, char** argv )
|
|||||||
if( connectClicked && *addr && !loadThread.joinable() )
|
if( connectClicked && *addr && !loadThread.joinable() )
|
||||||
{
|
{
|
||||||
std::string addrStr( addr );
|
std::string addrStr( addr );
|
||||||
auto it = connHistMap.find( addr );
|
auto it = connHistMap.find( addrStr );
|
||||||
if( it != connHistMap.end() )
|
if( it != connHistMap.end() )
|
||||||
{
|
{
|
||||||
it->second++;
|
it->second++;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
connHistMap.emplace( std::move( addr ), 1 );
|
connHistMap.emplace( std::move( addrStr ), 1 );
|
||||||
}
|
}
|
||||||
connHistVec = RebuildConnectionHistory( connHistMap );
|
connHistVec = RebuildConnectionHistory( connHistMap );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user