udp/client: Take std::function by const reference with TestCommunication()
Avoids redundant copies.
This commit is contained in:
parent
64f967fd49
commit
36cfb234d5
2 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue