mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:27:45 +00:00
AK+Everywhere: Rename String to DeprecatedString
We have a new, improved string type coming up in AK (OOM aware, no null state), and while it's going to use UTF-8, the name UTF8String is a mouthful - so let's free up the String name by renaming the existing class. Making the old one have an annoying name will hopefully also help with quick adoption :^)
This commit is contained in:
parent
f74251606d
commit
6e19ab2bbc
2006 changed files with 11635 additions and 11636 deletions
|
@ -90,7 +90,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
auto update = [&]() {
|
||||
board_view->set_board(&game.board());
|
||||
board_view->update();
|
||||
statusbar->set_text(String::formatted("Score: {}", game.score()));
|
||||
statusbar->set_text(DeprecatedString::formatted("Score: {}", game.score()));
|
||||
};
|
||||
|
||||
update();
|
||||
|
@ -149,7 +149,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
case Game::MoveOutcome::Won: {
|
||||
update();
|
||||
auto want_to_continue = GUI::MessageBox::show(window,
|
||||
String::formatted("You won the game in {} turns with a score of {}. Would you like to continue?", game.turns(), game.score()),
|
||||
DeprecatedString::formatted("You won the game in {} turns with a score of {}. Would you like to continue?", game.turns(), game.score()),
|
||||
"Congratulations!"sv,
|
||||
GUI::MessageBox::Type::Question,
|
||||
GUI::MessageBox::InputType::YesNo);
|
||||
|
@ -162,7 +162,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
case Game::MoveOutcome::GameOver:
|
||||
update();
|
||||
GUI::MessageBox::show(window,
|
||||
String::formatted("You reached {} in {} turns with a score of {}", game.largest_tile(), game.turns(), game.score()),
|
||||
DeprecatedString::formatted("You reached {} in {} turns with a score of {}", game.largest_tile(), game.turns(), game.score()),
|
||||
"You lost!"sv,
|
||||
GUI::MessageBox::Type::Information);
|
||||
start_a_new_game();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue