summaryrefslogtreecommitdiff
path: root/Userland/Utilities/w.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-12-06 01:12:49 +0000
committerAndreas Kling <kling@serenityos.org>2022-12-06 08:54:33 +0100
commit57dc179b1fce5d4b7171311b04667debfe693095 (patch)
treea459d1aef92dc4e49bbf03b32621b1e7e30d4e64 /Userland/Utilities/w.cpp
parent6e19ab2bbce0b113b628e6f8e9b5c0640053933e (diff)
downloadserenity-57dc179b1fce5d4b7171311b04667debfe693095.zip
Everywhere: Rename to_{string => deprecated_string}() where applicable
This will make it easier to support both string types at the same time while we convert code, and tracking down remaining uses. One big exception is Value::to_string() in LibJS, where the name is dictated by the ToString AO.
Diffstat (limited to 'Userland/Utilities/w.cpp')
-rw-r--r--Userland/Utilities/w.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Utilities/w.cpp b/Userland/Utilities/w.cpp
index 6c9b4c7587..1c905dae80 100644
--- a/Userland/Utilities/w.cpp
+++ b/Userland/Utilities/w.cpp
@@ -48,7 +48,7 @@ ErrorOr<int> serenity_main(Main::Arguments)
[[maybe_unused]] auto pid = entry.get("pid"sv).to_i32();
auto login_time = Core::DateTime::from_timestamp(entry.get("login_at"sv).to_number<time_t>());
- auto login_at = login_time.to_string("%b%d %H:%M:%S"sv);
+ auto login_at = login_time.to_deprecated_string("%b%d %H:%M:%S"sv);
auto* pw = getpwuid(uid);
DeprecatedString username;
@@ -64,7 +64,7 @@ ErrorOr<int> serenity_main(Main::Arguments)
auto idle_time = now - st.st_mtime;
if (idle_time >= 0) {
builder.appendff("{}s", idle_time);
- idle_string = builder.to_string();
+ idle_string = builder.to_deprecated_string();
}
}