diff options
| author | 2020-02-03 09:21:44 -0500 | |
|---|---|---|
| committer | 2020-02-03 09:21:46 -0500 | |
| commit | fb9c9ddcc908e181793fb2564c7e05c1af5d4913 (patch) | |
| tree | 2f30ed2772062d094b8a55bffe8fe04f99dbb333 /src/input_common/udp/client.cpp | |
| parent | udp/client: Replace deprecated from_string() call with make_address_v4() (diff) | |
| download | yuzu-fb9c9ddcc908e181793fb2564c7e05c1af5d4913.tar.gz yuzu-fb9c9ddcc908e181793fb2564c7e05c1af5d4913.tar.xz yuzu-fb9c9ddcc908e181793fb2564c7e05c1af5d4913.zip | |
input_common/udp: std::move shared_ptr within Client constructor
Gets rid of a trivially avoidable atomic reference count increment and
decrement.
Diffstat (limited to 'src/input_common/udp/client.cpp')
| -rw-r--r-- | src/input_common/udp/client.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input_common/udp/client.cpp b/src/input_common/udp/client.cpp index f020628eb..1fa246e79 100644 --- a/src/input_common/udp/client.cpp +++ b/src/input_common/udp/client.cpp | |||
| @@ -125,7 +125,7 @@ static void SocketLoop(Socket* socket) { | |||
| 125 | 125 | ||
| 126 | Client::Client(std::shared_ptr<DeviceStatus> status, const std::string& host, u16 port, | 126 | Client::Client(std::shared_ptr<DeviceStatus> status, const std::string& host, u16 port, |
| 127 | u8 pad_index, u32 client_id) | 127 | u8 pad_index, u32 client_id) |
| 128 | : status(status) { | 128 | : status(std::move(status)) { |
| 129 | StartCommunication(host, port, pad_index, client_id); | 129 | StartCommunication(host, port, pad_index, client_id); |
| 130 | } | 130 | } |
| 131 | 131 | ||