mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-25 22:57:22 +00:00
input_common/udp: std::move shared_ptr within Client constructor
Gets rid of a trivially avoidable atomic reference count increment and decrement.
This commit is contained in:
parent
9bb6ab77f4
commit
fb9c9ddcc9
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ static void SocketLoop(Socket* socket) {
|
||||||
|
|
||||||
Client::Client(std::shared_ptr<DeviceStatus> status, const std::string& host, u16 port,
|
Client::Client(std::shared_ptr<DeviceStatus> status, const std::string& host, u16 port,
|
||||||
u8 pad_index, u32 client_id)
|
u8 pad_index, u32 client_id)
|
||||||
: status(status) {
|
: status(std::move(status)) {
|
||||||
StartCommunication(host, port, pad_index, client_id);
|
StartCommunication(host, port, pad_index, client_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue