mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:07:35 +00:00
AK+Everywhere: Rename JsonObject::get() to ::get_deprecated()
This is a preparatory step to making `get()` return `ErrorOr`.
This commit is contained in:
parent
efe4329f9f
commit
1dd6b7f5b7
76 changed files with 671 additions and 671 deletions
|
@ -127,10 +127,10 @@ private:
|
|||
int connected_adapters = 0;
|
||||
json.value().as_array().for_each([&adapter_info, &connected_adapters](auto& value) {
|
||||
auto& if_object = value.as_object();
|
||||
auto ip_address = if_object.get("ipv4_address"sv).as_string_or("no IP");
|
||||
auto ifname = if_object.get("name"sv).to_deprecated_string();
|
||||
auto link_up = if_object.get("link_up"sv).as_bool();
|
||||
auto link_speed = if_object.get("link_speed"sv).to_i32();
|
||||
auto ip_address = if_object.get_deprecated("ipv4_address"sv).as_string_or("no IP");
|
||||
auto ifname = if_object.get_deprecated("name"sv).to_deprecated_string();
|
||||
auto link_up = if_object.get_deprecated("link_up"sv).as_bool();
|
||||
auto link_speed = if_object.get_deprecated("link_speed"sv).to_i32();
|
||||
|
||||
if (ifname == "loop")
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue