diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2022-12-21 11:42:06 +0000 |
---|---|---|
committer | Tim Flynn <trflynn89@pm.me> | 2023-01-17 19:52:52 -0500 |
commit | 1dd6b7f5b787e1893b708ddf58492f9fdd50ae51 (patch) | |
tree | 3f9f665b573fa3097b707b1cc8cb08e1572b34cd /Userland/Applications/SystemMonitor/ProcessFileDescriptorMapWidget.cpp | |
parent | efe4329f9fe448eb17784d7a9b9e6e519ec4fa57 (diff) | |
download | serenity-1dd6b7f5b787e1893b708ddf58492f9fdd50ae51.zip |
AK+Everywhere: Rename JsonObject::get() to ::get_deprecated()
This is a preparatory step to making `get()` return `ErrorOr`.
Diffstat (limited to 'Userland/Applications/SystemMonitor/ProcessFileDescriptorMapWidget.cpp')
-rw-r--r-- | Userland/Applications/SystemMonitor/ProcessFileDescriptorMapWidget.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Userland/Applications/SystemMonitor/ProcessFileDescriptorMapWidget.cpp b/Userland/Applications/SystemMonitor/ProcessFileDescriptorMapWidget.cpp index 1f019f532d..0b27aea785 100644 --- a/Userland/Applications/SystemMonitor/ProcessFileDescriptorMapWidget.cpp +++ b/Userland/Applications/SystemMonitor/ProcessFileDescriptorMapWidget.cpp @@ -27,19 +27,19 @@ ProcessFileDescriptorMapWidget::ProcessFileDescriptorMapWidget() pid_fds_fields.empend("offset", "Offset", Gfx::TextAlignment::CenterRight); pid_fds_fields.empend("absolute_path", "Path", Gfx::TextAlignment::CenterLeft); pid_fds_fields.empend("Access", Gfx::TextAlignment::CenterLeft, [](auto& object) { - return object.get("seekable"sv).to_bool() ? "Seekable" : "Sequential"; + return object.get_deprecated("seekable"sv).to_bool() ? "Seekable" : "Sequential"; }); pid_fds_fields.empend("Blocking", Gfx::TextAlignment::CenterLeft, [](auto& object) { - return object.get("blocking"sv).to_bool() ? "Blocking" : "Nonblocking"; + return object.get_deprecated("blocking"sv).to_bool() ? "Blocking" : "Nonblocking"; }); pid_fds_fields.empend("On exec", Gfx::TextAlignment::CenterLeft, [](auto& object) { - return object.get("cloexec"sv).to_bool() ? "Close" : "Keep"; + return object.get_deprecated("cloexec"sv).to_bool() ? "Close" : "Keep"; }); pid_fds_fields.empend("Can read", Gfx::TextAlignment::CenterLeft, [](auto& object) { - return object.get("can_read"sv).to_bool() ? "Yes" : "No"; + return object.get_deprecated("can_read"sv).to_bool() ? "Yes" : "No"; }); pid_fds_fields.empend("Can write", Gfx::TextAlignment::CenterLeft, [](auto& object) { - return object.get("can_write"sv).to_bool() ? "Yes" : "No"; + return object.get_deprecated("can_write"sv).to_bool() ? "Yes" : "No"; }); m_model = GUI::JsonArrayModel::create({}, move(pid_fds_fields)); |