diff options
author | Lioncash <mathew1800@gmail.com> | 2022-01-24 16:58:22 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2022-01-24 16:58:25 +0100 |
commit | b084a9bf0aeecee6e15c62cddf743ce07389a60f (patch) | |
tree | 74bf120235a501273536364666e7504366200797 /src/input_common/drivers/udp_client.cpp | |
parent | Merge pull request #7761 from v1993/patch-8 (diff) | |
download | yuzu-b084a9bf0aeecee6e15c62cddf743ce07389a60f.tar yuzu-b084a9bf0aeecee6e15c62cddf743ce07389a60f.tar.gz yuzu-b084a9bf0aeecee6e15c62cddf743ce07389a60f.tar.bz2 yuzu-b084a9bf0aeecee6e15c62cddf743ce07389a60f.tar.lz yuzu-b084a9bf0aeecee6e15c62cddf743ce07389a60f.tar.xz yuzu-b084a9bf0aeecee6e15c62cddf743ce07389a60f.tar.zst yuzu-b084a9bf0aeecee6e15c62cddf743ce07389a60f.zip |
Diffstat (limited to 'src/input_common/drivers/udp_client.cpp')
-rw-r--r-- | src/input_common/drivers/udp_client.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input_common/drivers/udp_client.cpp b/src/input_common/drivers/udp_client.cpp index 9aaeb91be..8f27435a8 100644 --- a/src/input_common/drivers/udp_client.cpp +++ b/src/input_common/drivers/udp_client.cpp @@ -339,7 +339,7 @@ void UDPClient::StartCommunication(std::size_t client, const std::string& host, } } -const PadIdentifier UDPClient::GetPadIdentifier(std::size_t pad_index) const { +PadIdentifier UDPClient::GetPadIdentifier(std::size_t pad_index) const { const std::size_t client = pad_index / PADS_PER_CLIENT; return { .guid = clients[client].uuid, @@ -348,7 +348,7 @@ const PadIdentifier UDPClient::GetPadIdentifier(std::size_t pad_index) const { }; } -const Common::UUID UDPClient::GetHostUUID(const std::string host) const { +Common::UUID UDPClient::GetHostUUID(const std::string& host) const { const auto ip = boost::asio::ip::address_v4::from_string(host); const auto hex_host = fmt::format("{:06x}", ip.to_ulong()); return Common::UUID{hex_host}; |