diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2022-12-21 11:42:06 +0000 |
---|---|---|
committer | Tim Flynn <trflynn89@pm.me> | 2023-01-17 19:52:52 -0500 |
commit | 1dd6b7f5b787e1893b708ddf58492f9fdd50ae51 (patch) | |
tree | 3f9f665b573fa3097b707b1cc8cb08e1572b34cd /Userland/Utilities/route.cpp | |
parent | efe4329f9fe448eb17784d7a9b9e6e519ec4fa57 (diff) | |
download | serenity-1dd6b7f5b787e1893b708ddf58492f9fdd50ae51.zip |
AK+Everywhere: Rename JsonObject::get() to ::get_deprecated()
This is a preparatory step to making `get()` return `ErrorOr`.
Diffstat (limited to 'Userland/Utilities/route.cpp')
-rw-r--r-- | Userland/Utilities/route.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Userland/Utilities/route.cpp b/Userland/Utilities/route.cpp index 420ba50918..1c6e75f05a 100644 --- a/Userland/Utilities/route.cpp +++ b/Userland/Utilities/route.cpp @@ -101,17 +101,17 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) Vector<JsonValue> sorted_regions = json.as_array().values(); quick_sort(sorted_regions, [](auto& a, auto& b) { - return a.as_object().get("destination"sv).to_deprecated_string() < b.as_object().get("destination"sv).to_deprecated_string(); + return a.as_object().get_deprecated("destination"sv).to_deprecated_string() < b.as_object().get_deprecated("destination"sv).to_deprecated_string(); }); for (auto& value : sorted_regions) { auto& if_object = value.as_object(); - auto destination = if_object.get("destination"sv).to_deprecated_string(); - auto gateway = if_object.get("gateway"sv).to_deprecated_string(); - auto genmask = if_object.get("genmask"sv).to_deprecated_string(); - auto interface = if_object.get("interface"sv).to_deprecated_string(); - auto flags = if_object.get("flags"sv).to_u32(); + auto destination = if_object.get_deprecated("destination"sv).to_deprecated_string(); + auto gateway = if_object.get_deprecated("gateway"sv).to_deprecated_string(); + auto genmask = if_object.get_deprecated("genmask"sv).to_deprecated_string(); + auto interface = if_object.get_deprecated("interface"sv).to_deprecated_string(); + auto flags = if_object.get_deprecated("flags"sv).to_u32(); StringBuilder flags_builder; if (flags & RTF_UP) |