mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:57:35 +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
|
@ -496,7 +496,7 @@ void BrickGame::paint_cell(GUI::Painter& painter, Gfx::IntRect rect, bool is_on)
|
|||
painter.fill_rect(rect, is_on ? m_front_color : m_shadow_color);
|
||||
}
|
||||
|
||||
void BrickGame::paint_text(GUI::Painter& painter, int row, String const& text)
|
||||
void BrickGame::paint_text(GUI::Painter& painter, int row, DeprecatedString const& text)
|
||||
{
|
||||
auto const text_width { font().width(text) };
|
||||
auto const entire_area_rect { frame_inner_rect() };
|
||||
|
@ -541,9 +541,9 @@ void BrickGame::paint_game(GUI::Painter& painter, Gfx::IntRect const& rect)
|
|||
paint_cell(painter, cell_rect(position), (*m_brick_game)[board_position]);
|
||||
}
|
||||
|
||||
paint_text(painter, 0, String::formatted("Score: {}", m_brick_game->score()));
|
||||
paint_text(painter, 1, String::formatted("Level: {}", m_brick_game->level()));
|
||||
paint_text(painter, 4, String::formatted("Hi-Score: {}", m_high_score));
|
||||
paint_text(painter, 0, DeprecatedString::formatted("Score: {}", m_brick_game->score()));
|
||||
paint_text(painter, 1, DeprecatedString::formatted("Level: {}", m_brick_game->level()));
|
||||
paint_text(painter, 4, DeprecatedString::formatted("Hi-Score: {}", m_high_score));
|
||||
paint_text(painter, 12, "Next:");
|
||||
|
||||
auto const hint_rect = Gfx::IntRect {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue