mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:58:12 +00:00
LibGUI: Use String::formatted() and String::number() more
This commit is contained in:
parent
f181ddb56a
commit
7bb18215cb
15 changed files with 48 additions and 24 deletions
|
@ -34,13 +34,13 @@ namespace Gfx {
|
|||
template<>
|
||||
String IntSize::to_string() const
|
||||
{
|
||||
return String::format("[%dx%d]", m_width, m_height);
|
||||
return String::formatted("[{}x{}]", m_width, m_height);
|
||||
}
|
||||
|
||||
template<>
|
||||
String FloatSize::to_string() const
|
||||
{
|
||||
return String::format("[%fx%f]", m_width, m_height);
|
||||
return String::formatted("[{}x{}]", m_width, m_height);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue