diff options
author | Lioncash <mathew1800@gmail.com> | 2020-10-16 06:22:26 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-10-16 06:22:29 -0400 |
commit | 36cfb234d5f867a59f102ac2ffd71dc1c669cf46 (patch) | |
tree | 9e0e54a038cca0500c07d4583d74be1b7430c34c /src/input_common/udp/client.h | |
parent | 64f967fd4958abb5a02191a81e91fc8b33bcf4c5 (diff) |
udp/client: Take std::function by const reference with TestCommunication()
Avoids redundant copies.
Diffstat (limited to 'src/input_common/udp/client.h')
-rw-r--r-- | src/input_common/udp/client.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input_common/udp/client.h b/src/input_common/udp/client.h index 2491a03a22..747e0c0a27 100644 --- a/src/input_common/udp/client.h +++ b/src/input_common/udp/client.h @@ -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 |