mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-29 04:39:10 +00:00
AK+Everywhere: Rename JsonObject::get() to ::get_deprecated()
This is a preparatory step to making `get()` return `ErrorOr`.
This commit is contained in:
parent
efe4329f9f
commit
1dd6b7f5b7
Notes:
sideshowbarker
2024-07-17 01:34:39 +09:00
Author: https://github.com/AtkinsSJ
Commit: 1dd6b7f5b7
Pull-request: https://github.com/SerenityOS/serenity/pull/17044
76 changed files with 671 additions and 671 deletions
|
@ -40,10 +40,10 @@ ErrorOr<int> serenity_main(Main::Arguments)
|
|||
outln("\033[1m{:10} {:12} {:16} {:6} {}\033[0m", "USER", "TTY", "LOGIN@", "IDLE", "WHAT");
|
||||
json.as_object().for_each_member([&](auto& tty, auto& value) {
|
||||
const JsonObject& entry = value.as_object();
|
||||
auto uid = entry.get("uid"sv).to_u32();
|
||||
[[maybe_unused]] auto pid = entry.get("pid"sv).to_i32();
|
||||
auto uid = entry.get_deprecated("uid"sv).to_u32();
|
||||
[[maybe_unused]] auto pid = entry.get_deprecated("pid"sv).to_i32();
|
||||
|
||||
auto login_time = Core::DateTime::from_timestamp(entry.get("login_at"sv).to_number<time_t>());
|
||||
auto login_time = Core::DateTime::from_timestamp(entry.get_deprecated("login_at"sv).to_number<time_t>());
|
||||
auto login_at = login_time.to_deprecated_string("%b%d %H:%M:%S"sv);
|
||||
|
||||
auto* pw = getpwuid(uid);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue