summaryrefslogtreecommitdiff
path: root/src/input_common/udp/client.h
diff options
context:
space:
mode:
authorGravatar Lioncash2020-10-16 06:22:26 -0400
committerGravatar Lioncash2020-10-16 06:22:29 -0400
commit36cfb234d5f867a59f102ac2ffd71dc1c669cf46 (patch)
tree9e0e54a038cca0500c07d4583d74be1b7430c34c /src/input_common/udp/client.h
parentMerge pull request #4790 from lioncash/input-common (diff)
downloadyuzu-36cfb234d5f867a59f102ac2ffd71dc1c669cf46.tar.gz
yuzu-36cfb234d5f867a59f102ac2ffd71dc1c669cf46.tar.xz
yuzu-36cfb234d5f867a59f102ac2ffd71dc1c669cf46.zip
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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input_common/udp/client.h b/src/input_common/udp/client.h
index 2491a03a2..747e0c0a2 100644
--- a/src/input_common/udp/client.h
+++ b/src/input_common/udp/client.h
@@ -150,7 +150,7 @@ private:
150}; 150};
151 151
152void TestCommunication(const std::string& host, u16 port, std::size_t pad_index, u32 client_id, 152void TestCommunication(const std::string& host, u16 port, std::size_t pad_index, u32 client_id,
153 std::function<void()> success_callback, 153 const std::function<void()>& success_callback,
154 std::function<void()> failure_callback); 154 const std::function<void()>& failure_callback);
155 155
156} // namespace InputCommon::CemuhookUDP 156} // namespace InputCommon::CemuhookUDP