summaryrefslogtreecommitdiff
path: root/Tests/AK
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2022-12-21 11:42:06 +0000
committerTim Flynn <trflynn89@pm.me>2023-01-17 19:52:52 -0500
commit1dd6b7f5b787e1893b708ddf58492f9fdd50ae51 (patch)
tree3f9f665b573fa3097b707b1cc8cb08e1572b34cd /Tests/AK
parentefe4329f9fe448eb17784d7a9b9e6e519ec4fa57 (diff)
downloadserenity-1dd6b7f5b787e1893b708ddf58492f9fdd50ae51.zip
AK+Everywhere: Rename JsonObject::get() to ::get_deprecated()
This is a preparatory step to making `get()` return `ErrorOr`.
Diffstat (limited to 'Tests/AK')
-rw-r--r--Tests/AK/TestJSON.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Tests/AK/TestJSON.cpp b/Tests/AK/TestJSON.cpp
index 92453ead2f..13dbd6e9b1 100644
--- a/Tests/AK/TestJSON.cpp
+++ b/Tests/AK/TestJSON.cpp
@@ -40,15 +40,15 @@ TEST_CASE(load_form)
EXPECT(form_json.is_object());
- auto name = form_json.as_object().get("name"sv).to_deprecated_string();
+ auto name = form_json.as_object().get_deprecated("name"sv).to_deprecated_string();
EXPECT_EQ(name, "Form1");
- auto widgets = form_json.as_object().get("widgets"sv).as_array();
+ auto widgets = form_json.as_object().get_deprecated("widgets"sv).as_array();
widgets.for_each([&](JsonValue const& widget_value) {
auto& widget_object = widget_value.as_object();
- auto widget_class = widget_object.get("class"sv).as_string();
+ auto widget_class = widget_object.get_deprecated("class"sv).as_string();
widget_object.for_each_member([&]([[maybe_unused]] auto& property_name, [[maybe_unused]] const JsonValue& property_value) {
});
});