mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
Utilities/mount: Replace uses of JsonObject::get_deprecated()/get_ptr()
This commit is contained in:
parent
c1d3f39cc4
commit
f14a1da633
Notes:
sideshowbarker
2024-07-17 04:21:32 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/f14a1da633 Pull-request: https://github.com/SerenityOS/serenity/pull/16627 Reviewed-by: https://github.com/trflynn89
1 changed files with 5 additions and 5 deletions
|
@ -155,11 +155,11 @@ static ErrorOr<void> print_mounts()
|
|||
|
||||
json.as_array().for_each([](auto& value) {
|
||||
auto& fs_object = value.as_object();
|
||||
auto class_name = fs_object.get_deprecated("class_name"sv).to_deprecated_string();
|
||||
auto mount_point = fs_object.get_deprecated("mount_point"sv).to_deprecated_string();
|
||||
auto source = fs_object.get_deprecated("source"sv).as_string_or("none");
|
||||
auto readonly = fs_object.get_deprecated("readonly"sv).to_bool();
|
||||
auto mount_flags = fs_object.get_deprecated("mount_flags"sv).to_int();
|
||||
auto class_name = fs_object.get_deprecated_string("class_name"sv).value_or({});
|
||||
auto mount_point = fs_object.get_deprecated_string("mount_point"sv).value_or({});
|
||||
auto source = fs_object.get_deprecated_string("source"sv).value_or("none");
|
||||
auto readonly = fs_object.get_bool("readonly"sv).value_or(false);
|
||||
auto mount_flags = fs_object.get_u32("mount_flags"sv).value_or(0);
|
||||
|
||||
out("{} on {} type {} (", source, mount_point, class_name);
|
||||
|
||||
|
|
Loading…
Reference in a new issue