mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:14:58 +00:00
Utilities/lsjails: Replace uses of JsonObject::get_deprecated()/get_ptr
This commit is contained in:
parent
a04ca015bf
commit
5d8a87bf1f
1 changed files with 2 additions and 2 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_deprecated("index"sv).to_deprecated_string();
|
||||
auto name = jail.get_deprecated("name"sv).to_deprecated_string();
|
||||
auto index = jail.get_deprecated_string("index"sv).value_or({});
|
||||
auto name = jail.get_deprecated_string("name"sv).value_or({});
|
||||
|
||||
outln("{:4} {:10}", index, name);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue