SpaceAnalyzer: Replace uses of JsonObject::get_deprecated()/get_ptr()
This commit is contained in:
parent
74452ffc50
commit
c84e11c154
Notes:
sideshowbarker
2024-07-17 03:30:41 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/c84e11c154 Pull-request: https://github.com/SerenityOS/serenity/pull/17185
1 changed files with 2 additions and 2 deletions
|
@ -45,8 +45,8 @@ static ErrorOr<void> fill_mounts(Vector<MountInfo>& output)
|
|||
TRY(json.as_array().try_for_each([&output](JsonValue const& value) -> ErrorOr<void> {
|
||||
auto& filesystem_object = value.as_object();
|
||||
MountInfo mount_info;
|
||||
mount_info.mount_point = filesystem_object.get_deprecated("mount_point"sv).to_deprecated_string();
|
||||
mount_info.source = filesystem_object.get_deprecated("source"sv).as_string_or("none"sv);
|
||||
mount_info.mount_point = filesystem_object.get_deprecated_string("mount_point"sv).value_or({});
|
||||
mount_info.source = filesystem_object.get_deprecated_string("source"sv).value_or("none");
|
||||
TRY(output.try_append(mount_info));
|
||||
return {};
|
||||
}));
|
||||
|
|
Loading…
Add table
Reference in a new issue