From 1dd6b7f5b787e1893b708ddf58492f9fdd50ae51 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Wed, 21 Dec 2022 11:42:06 +0000 Subject: AK+Everywhere: Rename JsonObject::get() to ::get_deprecated() This is a preparatory step to making `get()` return `ErrorOr`. --- Userland/Utilities/route.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Userland/Utilities/route.cpp') 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 serenity_main(Main::Arguments arguments) Vector 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) -- cgit v1.2.3