diff options
author | Lioncash <mathew1800@gmail.com> | 2020-02-03 09:21:44 -0500 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-02-03 09:21:46 -0500 |
commit | fb9c9ddcc908e181793fb2564c7e05c1af5d4913 (patch) | |
tree | 2f30ed2772062d094b8a55bffe8fe04f99dbb333 /src/input_common/udp/client.cpp | |
parent | 9bb6ab77f4439ea8c9d78c896aedf8dcdf0c1c6e (diff) |
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 f020628eb8..1fa246e793 100644 --- a/src/input_common/udp/client.cpp +++ b/src/input_common/udp/client.cpp @@ -125,7 +125,7 @@ static void SocketLoop(Socket* socket) { Client::Client(std::shared_ptr<DeviceStatus> status, const std::string& host, u16 port, u8 pad_index, u32 client_id) - : status(status) { + : status(std::move(status)) { StartCommunication(host, port, pad_index, client_id); } |