mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 16:17:45 +00:00
Everywhere: Rename {Deprecated => Byte}String
This commit un-deprecates DeprecatedString, and repurposes it as a byte string. As the null state has already been removed, there are no other particularly hairy blockers in repurposing this type as a byte string (what it _really_ is). This commit is auto-generated: $ xs=$(ack -l \bDeprecatedString\b\|deprecated_string AK Userland \ Meta Ports Ladybird Tests Kernel) $ perl -pie 's/\bDeprecatedString\b/ByteString/g; s/deprecated_string/byte_string/g' $xs $ clang-format --style=file -i \ $(git diff --name-only | grep \.cpp\|\.h) $ gn format $(git ls-files '*.gn' '*.gni')
This commit is contained in:
parent
38d62563b3
commit
5e1499d104
1615 changed files with 10257 additions and 10257 deletions
|
@ -79,7 +79,7 @@ ErrorOr<int> serenity_main(Main::Arguments args)
|
|||
auto maybe_account = Core::Account::from_uid(uid, Core::Account::Read::PasswdOnly);
|
||||
String username;
|
||||
if (!maybe_account.is_error())
|
||||
username = TRY(String::from_deprecated_string(maybe_account.release_value().username()));
|
||||
username = TRY(String::from_byte_string(maybe_account.release_value().username()));
|
||||
else
|
||||
username = TRY(String::formatted("{}", uid));
|
||||
|
||||
|
@ -103,7 +103,7 @@ ErrorOr<int> serenity_main(Main::Arguments args)
|
|||
tty_display_name = tty_pseudo_name;
|
||||
for (auto& process : process_statistics.processes) {
|
||||
if (tty_pseudo_name == process.tty.view() && process.pid == process.pgid) {
|
||||
what = TRY(String::from_deprecated_string(process.name));
|
||||
what = TRY(String::from_byte_string(process.name));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue