udp/client: Take std::function by const reference with TestCommunication()

Avoids redundant copies.
This commit is contained in:
Lioncash 2020-10-16 06:22:26 -04:00
parent 64f967fd49
commit 36cfb234d5
2 changed files with 5 additions and 5 deletions

View file

@ -150,7 +150,7 @@ private:
};
void TestCommunication(const std::string& host, u16 port, std::size_t pad_index, u32 client_id,
std::function<void()> success_callback,
std::function<void()> failure_callback);
const std::function<void()>& success_callback,
const std::function<void()>& failure_callback);
} // namespace InputCommon::CemuhookUDP