diff options
| author | 2022-01-24 11:00:58 -0500 | |
|---|---|---|
| committer | 2022-01-24 11:14:30 -0500 | |
| commit | 87eb3cb0831139605bcf098c3324ed701881ec42 (patch) | |
| tree | 430d46b870f6b53e56dcf93fe787bf6a4cb79814 /src/input_common/drivers/udp_client.cpp | |
| parent | input_common/udp_client: Prevent unnecessary string copies (diff) | |
| download | yuzu-87eb3cb0831139605bcf098c3324ed701881ec42.tar.gz yuzu-87eb3cb0831139605bcf098c3324ed701881ec42.tar.xz yuzu-87eb3cb0831139605bcf098c3324ed701881ec42.zip | |
input_common/udp_client: Replace deprecated from_string()/to_ulong() functions
These are deprecated and make_address variants and to_uint() should be used instead.
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 8f27435a8..d1cdb1ab2 100644 --- a/src/input_common/drivers/udp_client.cpp +++ b/src/input_common/drivers/udp_client.cpp | |||
| @@ -349,8 +349,8 @@ PadIdentifier UDPClient::GetPadIdentifier(std::size_t pad_index) const { | |||
| 349 | } | 349 | } |
| 350 | 350 | ||
| 351 | Common::UUID UDPClient::GetHostUUID(const std::string& host) const { | 351 | Common::UUID UDPClient::GetHostUUID(const std::string& host) const { |
| 352 | const auto ip = boost::asio::ip::address_v4::from_string(host); | 352 | const auto ip = boost::asio::ip::make_address_v4(host); |
| 353 | const auto hex_host = fmt::format("{:06x}", ip.to_ulong()); | 353 | const auto hex_host = fmt::format("{:06x}", ip.to_uint()); |
| 354 | return Common::UUID{hex_host}; | 354 | return Common::UUID{hex_host}; |
| 355 | } | 355 | } |
| 356 | 356 | ||