1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 16:25:06 +00:00

LibGUI: Use String::formatted() and String::number() more

This commit is contained in:
Andreas Kling 2021-01-03 14:51:17 +01:00
parent 5e157eaf37
commit f181ddb56a
9 changed files with 17 additions and 20 deletions

View file

@ -435,7 +435,7 @@ String Variant::to_string() const
case Type::Rect:
return as_rect().to_string();
case Type::Font:
return String::format("[Font: %s]", as_font().name().characters());
return String::formatted("[Font: {}]", as_font().name());
case Type::TextAlignment: {
switch (m_value.as_text_alignment) {
case Gfx::TextAlignment::Center: