aboutsummaryrefslogtreecommitdiff
path: root/src/input_common/udp/client.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-02-03 09:15:30 -0500
committerLioncash <mathew1800@gmail.com>2020-02-03 09:15:32 -0500
commit881408445a3e4a22734f6ccfdf7f96575fa249d3 (patch)
tree8cd62447d74c59e7ea1775493c036fc59c6743b2 /src/input_common/udp/client.cpp
parent36524465a6fb9940ab5297cef21cd2aa6de8e239 (diff)
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/input_common/udp/client.cpp')
-rw-r--r--src/input_common/udp/client.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/input_common/udp/client.cpp b/src/input_common/udp/client.cpp
index 5f5a9989c8..7d6b0478e8 100644
--- a/src/input_common/udp/client.cpp
+++ b/src/input_common/udp/client.cpp
@@ -31,10 +31,9 @@ public:
explicit Socket(const std::string& host, u16 port, u8 pad_index, u32 client_id,
SocketCallback callback)
- : client_id(client_id), timer(io_service),
- send_endpoint(udp::endpoint(address_v4::from_string(host), port)),
- socket(io_service, udp::endpoint(udp::v4(), 0)), pad_index(pad_index),
- callback(std::move(callback)) {}
+ : callback(std::move(callback)), timer(io_service),
+ socket(io_service, udp::endpoint(udp::v4(), 0)), client_id(client_id),
+ pad_index(pad_index), send_endpoint(udp::endpoint(address_v4::from_string(host), port)) {}
void Stop() {
io_service.stop();