summaryrefslogtreecommitdiff
path: root/Userland/Utilities/df.cpp
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2022-12-21 11:42:06 +0000
committerTim Flynn <trflynn89@pm.me>2023-01-17 19:52:52 -0500
commit1dd6b7f5b787e1893b708ddf58492f9fdd50ae51 (patch)
tree3f9f665b573fa3097b707b1cc8cb08e1572b34cd /Userland/Utilities/df.cpp
parentefe4329f9fe448eb17784d7a9b9e6e519ec4fa57 (diff)
downloadserenity-1dd6b7f5b787e1893b708ddf58492f9fdd50ae51.zip
AK+Everywhere: Rename JsonObject::get() to ::get_deprecated()
This is a preparatory step to making `get()` return `ErrorOr`.
Diffstat (limited to 'Userland/Utilities/df.cpp')
-rw-r--r--Userland/Utilities/df.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/Userland/Utilities/df.cpp b/Userland/Utilities/df.cpp
index a2454542d2..51f5813454 100644
--- a/Userland/Utilities/df.cpp
+++ b/Userland/Utilities/df.cpp
@@ -62,15 +62,15 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
auto const& json = json_result.as_array();
json.for_each([&](auto& value) {
auto& fs_object = value.as_object();
- auto fs = fs_object.get("class_name"sv).to_deprecated_string();
- auto total_block_count = fs_object.get("total_block_count"sv).to_u64();
- auto free_block_count = fs_object.get("free_block_count"sv).to_u64();
+ auto fs = fs_object.get_deprecated("class_name"sv).to_deprecated_string();
+ auto total_block_count = fs_object.get_deprecated("total_block_count"sv).to_u64();
+ auto free_block_count = fs_object.get_deprecated("free_block_count"sv).to_u64();
auto used_block_count = total_block_count - free_block_count;
- auto total_inode_count = fs_object.get("total_inode_count"sv).to_u64();
- auto free_inode_count = fs_object.get("free_inode_count"sv).to_u64();
+ auto total_inode_count = fs_object.get_deprecated("total_inode_count"sv).to_u64();
+ auto free_inode_count = fs_object.get_deprecated("free_inode_count"sv).to_u64();
auto used_inode_count = total_inode_count - free_inode_count;
- auto block_size = fs_object.get("block_size"sv).to_u64();
- auto mount_point = fs_object.get("mount_point"sv).to_deprecated_string();
+ auto block_size = fs_object.get_deprecated("block_size"sv).to_u64();
+ auto mount_point = fs_object.get_deprecated("mount_point"sv).to_deprecated_string();
auto used_percentage = 100;
if (total_block_count != 0)