mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:57:44 +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
|
@ -25,8 +25,8 @@ ErrorOr<int> serenity_main(Main::Arguments)
|
|||
auto json = TRY(JsonValue::from_string(file_contents));
|
||||
json.as_array().for_each([](auto& value) {
|
||||
auto& jail = value.as_object();
|
||||
auto index = jail.get("index"sv).to_deprecated_string();
|
||||
auto name = jail.get("name"sv).to_deprecated_string();
|
||||
auto index = jail.get_deprecated("index"sv).to_deprecated_string();
|
||||
auto name = jail.get_deprecated("name"sv).to_deprecated_string();
|
||||
|
||||
outln("{:4} {:10}", index, name);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue