1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:47:45 +00:00

WidgetGallery: Convert StringBuilder::appendf() => AK::Format

This commit is contained in:
Andreas Kling 2021-05-07 20:48:01 +02:00
parent c1967fca0d
commit e2ffd14e4e

View file

@ -259,9 +259,7 @@ GalleryWidget::GalleryWidget()
" _||_-\n" " _||_-\n"
}; };
StringBuilder sb; m_wizard_output->set_text(String::formatted("{}{}", serenityos_ascii, wizard_ascii));
sb.appendf("%s%s", serenityos_ascii, wizard_ascii);
m_wizard_output->set_text(sb.to_string());
m_wizard_button->on_click = [&]() { m_wizard_button->on_click = [&]() {
StringBuilder sb; StringBuilder sb;