From e2ffd14e4e3109625a468afc10a6b4a241e624fc Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 7 May 2021 20:48:01 +0200 Subject: [PATCH] WidgetGallery: Convert StringBuilder::appendf() => AK::Format --- Userland/Demos/WidgetGallery/GalleryWidget.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Userland/Demos/WidgetGallery/GalleryWidget.cpp b/Userland/Demos/WidgetGallery/GalleryWidget.cpp index 6fc60342cd..bd6715c8e4 100644 --- a/Userland/Demos/WidgetGallery/GalleryWidget.cpp +++ b/Userland/Demos/WidgetGallery/GalleryWidget.cpp @@ -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;