mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 18:20:43 +09:00
Utilities/lsof: Replace uses of JsonObject::get_deprecated()/get_ptr()
This commit is contained in:
parent
5d8a87bf1f
commit
e8ebbcdbc5
Notes:
sideshowbarker
2024-07-17 04:41:05 +09:00
Author: https://github.com/AtkinsSJ
Commit: e8ebbcdbc5
Pull-request: https://github.com/SerenityOS/serenity/pull/16627
Reviewed-by: https://github.com/trflynn89
1 changed files with 2 additions and 2 deletions
|
@ -87,9 +87,9 @@ static Vector<OpenFile> get_open_files_by_pid(pid_t pid)
|
|||
json.as_array().for_each([pid, &files](JsonValue const& object) {
|
||||
OpenFile open_file;
|
||||
open_file.pid = pid;
|
||||
open_file.fd = object.as_object().get_deprecated("fd"sv).to_int();
|
||||
open_file.fd = object.as_object().get_integer<int>("fd"sv).value();
|
||||
|
||||
DeprecatedString name = object.as_object().get_deprecated("absolute_path"sv).to_deprecated_string();
|
||||
DeprecatedString name = object.as_object().get_deprecated_string("absolute_path"sv).value_or({});
|
||||
VERIFY(parse_name(name, open_file));
|
||||
open_file.full_name = name;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue