Pass function objects through const references.

This commit is contained in:
Bartosz Taudul
2023-04-16 16:44:18 +02:00
parent 778d0cb3fb
commit a0221c8660
16 changed files with 24 additions and 24 deletions

View File

@@ -72,7 +72,7 @@ static const char* GetOsInfo()
return buf;
}
void HttpRequest( const char* server, const char* resource, int port, std::function<void(int, char*)> cb )
void HttpRequest( const char* server, const char* resource, int port, const std::function<void(int, char*)>& cb )
{
tracy::Socket sock;
if( !sock.ConnectBlocking( server, port ) ) return;