citra-emu
/
citra
Archived
1
0
Fork 0

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:
Lioncash 2020-02-03 09:21:44 -05:00 committed by FearlessTobi
parent 8a0f8c3a4f
commit fcdc191107
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}