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"
};
StringBuilder sb;
sb.appendf("%s%s", serenityos_ascii, wizard_ascii);
m_wizard_output->set_text(sb.to_string());
m_wizard_output->set_text(String::formatted("{}{}", serenityos_ascii, wizard_ascii));
m_wizard_button->on_click = [&]() {
StringBuilder sb;