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:
parent
5e157eaf37
commit
f181ddb56a
9 changed files with 17 additions and 20 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue