[Codacy] Removed most of issues under "Performance" category

This commit is contained in:
Gliniak
2024-01-20 18:34:29 +01:00
parent 3675d6a6b1
commit 341192f6df
3 changed files with 15 additions and 13 deletions

View File

@@ -36,7 +36,7 @@ class Win32Socket : public Socket {
Win32Socket() = default;
~Win32Socket() override { Close(); }
bool Connect(std::string hostname, uint16_t port) {
bool Connect(std::string& hostname, uint16_t port) {
addrinfo hints = {0};
hints.ai_family = AF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;