mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:07:36 +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
|
@ -45,7 +45,7 @@ void BoardView::set_board(Game::Board const* board)
|
|||
|
||||
void BoardView::pick_font()
|
||||
{
|
||||
String best_font_name;
|
||||
DeprecatedString best_font_name;
|
||||
int best_font_size = -1;
|
||||
auto& font_database = Gfx::FontDatabase::the();
|
||||
font_database.for_each_font([&](Gfx::Font const& font) {
|
||||
|
@ -234,7 +234,7 @@ void BoardView::paint_event(GUI::PaintEvent& event)
|
|||
auto rect = Gfx::IntRect::centered_on(center, tile_size);
|
||||
|
||||
painter.fill_rect(rect, background_color_for_cell(sliding_tile.value_from));
|
||||
painter.draw_text(rect, String::number(sliding_tile.value_from), font(), Gfx::TextAlignment::Center, text_color_for_cell(sliding_tile.value_from));
|
||||
painter.draw_text(rect, DeprecatedString::number(sliding_tile.value_from), font(), Gfx::TextAlignment::Center, text_color_for_cell(sliding_tile.value_from));
|
||||
}
|
||||
} else {
|
||||
for (size_t column = 0; column < columns(); ++column) {
|
||||
|
@ -249,7 +249,7 @@ void BoardView::paint_event(GUI::PaintEvent& event)
|
|||
auto entry = tiles[row][column];
|
||||
painter.fill_rect(rect, background_color_for_cell(entry));
|
||||
if (entry > 0)
|
||||
painter.draw_text(rect, String::number(entry), font(), Gfx::TextAlignment::Center, text_color_for_cell(entry));
|
||||
painter.draw_text(rect, DeprecatedString::number(entry), font(), Gfx::TextAlignment::Center, text_color_for_cell(entry));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue