diff options
| author | 2020-02-03 09:15:30 -0500 | |
|---|---|---|
| committer | 2020-02-03 09:15:32 -0500 | |
| commit | 881408445a3e4a22734f6ccfdf7f96575fa249d3 (patch) | |
| tree | 8cd62447d74c59e7ea1775493c036fc59c6743b2 /src | |
| parent | input_common/udp: Remove unnecessary inclusions (diff) | |
| download | yuzu-881408445a3e4a22734f6ccfdf7f96575fa249d3.tar.gz yuzu-881408445a3e4a22734f6ccfdf7f96575fa249d3.tar.xz yuzu-881408445a3e4a22734f6ccfdf7f96575fa249d3.zip | |
input_common/udp: Silence -Wreorder warning for Socket
Amends the constructor initializer list to specify the order of its
elements in the same order that initialization would occur.
Diffstat (limited to 'src')
| -rw-r--r-- | src/input_common/udp/client.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/input_common/udp/client.cpp b/src/input_common/udp/client.cpp index 5f5a9989c..7d6b0478e 100644 --- a/src/input_common/udp/client.cpp +++ b/src/input_common/udp/client.cpp | |||
| @@ -31,10 +31,9 @@ public: | |||
| 31 | 31 | ||
| 32 | explicit Socket(const std::string& host, u16 port, u8 pad_index, u32 client_id, | 32 | explicit Socket(const std::string& host, u16 port, u8 pad_index, u32 client_id, |
| 33 | SocketCallback callback) | 33 | SocketCallback callback) |
| 34 | : client_id(client_id), timer(io_service), | 34 | : callback(std::move(callback)), timer(io_service), |
| 35 | send_endpoint(udp::endpoint(address_v4::from_string(host), port)), | 35 | socket(io_service, udp::endpoint(udp::v4(), 0)), client_id(client_id), |
| 36 | socket(io_service, udp::endpoint(udp::v4(), 0)), pad_index(pad_index), | 36 | pad_index(pad_index), send_endpoint(udp::endpoint(address_v4::from_string(host), port)) {} |
| 37 | callback(std::move(callback)) {} | ||
| 38 | 37 | ||
| 39 | void Stop() { | 38 | void Stop() { |
| 40 | io_service.stop(); | 39 | io_service.stop(); |