diff options
| author | 2021-12-13 09:05:23 -0500 | |
|---|---|---|
| committer | 2021-12-13 09:05:50 -0500 | |
| commit | 2b92d22bda767c7c723935c357bea474f8e2d2f8 (patch) | |
| tree | e732bb3b2062562c031ea54937514ca34ab6e6b1 /src/input_common/drivers/udp_client.cpp | |
| parent | input_engine: Remove callback clearing in constructor (diff) | |
| download | yuzu-2b92d22bda767c7c723935c357bea474f8e2d2f8.tar.gz yuzu-2b92d22bda767c7c723935c357bea474f8e2d2f8.tar.xz yuzu-2b92d22bda767c7c723935c357bea474f8e2d2f8.zip | |
input_engine: std::move engine name where applicable
We can allow the name to be moved into, allowing allocations to be
avoided.
Diffstat (limited to 'src/input_common/drivers/udp_client.cpp')
| -rw-r--r-- | src/input_common/drivers/udp_client.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input_common/drivers/udp_client.cpp b/src/input_common/drivers/udp_client.cpp index fdee0f2d5..4ab991a7d 100644 --- a/src/input_common/drivers/udp_client.cpp +++ b/src/input_common/drivers/udp_client.cpp | |||
| @@ -136,7 +136,7 @@ static void SocketLoop(Socket* socket) { | |||
| 136 | socket->Loop(); | 136 | socket->Loop(); |
| 137 | } | 137 | } |
| 138 | 138 | ||
| 139 | UDPClient::UDPClient(const std::string& input_engine_) : InputEngine(input_engine_) { | 139 | UDPClient::UDPClient(std::string input_engine_) : InputEngine(std::move(input_engine_)) { |
| 140 | LOG_INFO(Input, "Udp Initialization started"); | 140 | LOG_INFO(Input, "Udp Initialization started"); |
| 141 | ReloadSockets(); | 141 | ReloadSockets(); |
| 142 | } | 142 | } |