mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:07:45 +00:00
Services: Replace uses of JsonObject::get_deprecated()/get_ptr()
This commit is contained in:
parent
b592629fe5
commit
ba51e2dd3f
6 changed files with 30 additions and 30 deletions
|
@ -132,7 +132,7 @@ Vector<IPv4Address> MulticastDNS::local_addresses() const
|
|||
|
||||
json.as_array().for_each([&addresses](auto& value) {
|
||||
auto if_object = value.as_object();
|
||||
auto address = if_object.get_deprecated("ipv4_address"sv).to_deprecated_string();
|
||||
auto address = if_object.get_deprecated_string("ipv4_address"sv).value_or({});
|
||||
auto ipv4_address = IPv4Address::from_string(address);
|
||||
// Skip unconfigured interfaces.
|
||||
if (!ipv4_address.has_value())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue