mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:27:34 +00:00
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.
This commit is contained in:
parent
6e19ab2bbc
commit
57dc179b1f
597 changed files with 1973 additions and 1972 deletions
|
@ -45,13 +45,13 @@ 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_string();
|
||||
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();
|
||||
[[maybe_unused]] auto total_inode_count = fs_object.get("total_inode_count"sv).to_u64();
|
||||
[[maybe_unused]] auto free_inode_count = fs_object.get("free_inode_count"sv).to_u64();
|
||||
auto block_size = fs_object.get("block_size"sv).to_u64();
|
||||
auto mount_point = fs_object.get("mount_point"sv).to_string();
|
||||
auto mount_point = fs_object.get("mount_point"sv).to_deprecated_string();
|
||||
|
||||
out("{:10}", fs);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue