mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:07:36 +00:00
2048: Replace usage of DeprecatedString
This commit is contained in:
parent
87bf5045e4
commit
bc8cad31de
2 changed files with 6 additions and 6 deletions
|
@ -144,7 +144,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
case Game::MoveOutcome::Won: {
|
||||
update();
|
||||
auto want_to_continue = GUI::MessageBox::show(window,
|
||||
DeprecatedString::formatted("You won the game in {} turns with a score of {}. Would you like to continue?", game.turns(), game.score()),
|
||||
String::formatted("You won the game in {} turns with a score of {}. Would you like to continue?", game.turns(), game.score()).release_value_but_fixme_should_propagate_errors(),
|
||||
"Congratulations!"sv,
|
||||
GUI::MessageBox::Type::Question,
|
||||
GUI::MessageBox::InputType::YesNo);
|
||||
|
@ -157,7 +157,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
case Game::MoveOutcome::GameOver:
|
||||
update();
|
||||
GUI::MessageBox::show(window,
|
||||
DeprecatedString::formatted("You reached {} in {} turns with a score of {}", game.largest_tile(), game.turns(), game.score()),
|
||||
String::formatted("You reached {} in {} turns with a score of {}", game.largest_tile(), game.turns(), game.score()).release_value_but_fixme_should_propagate_errors(),
|
||||
"You lost!"sv,
|
||||
GUI::MessageBox::Type::Information);
|
||||
start_a_new_game();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue