diff options
| author | 2020-10-16 06:22:26 -0400 | |
|---|---|---|
| committer | 2020-10-16 06:22:29 -0400 | |
| commit | 36cfb234d5f867a59f102ac2ffd71dc1c669cf46 (patch) | |
| tree | 9e0e54a038cca0500c07d4583d74be1b7430c34c /src/input_common/udp/client.h | |
| parent | Merge pull request #4790 from lioncash/input-common (diff) | |
| download | yuzu-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.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 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 | ||
| 152 | void TestCommunication(const std::string& host, u16 port, std::size_t pad_index, u32 client_id, | 152 | void 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 |