mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
LibGUI: Use String::formatted() and String::number() more
This commit is contained in:
parent
f181ddb56a
commit
7bb18215cb
Notes:
sideshowbarker
2024-07-19 00:10:08 +09:00
Author: https://github.com/awesomekling
Commit: 7bb18215cb
15 changed files with 48 additions and 24 deletions
|
@ -51,13 +51,13 @@ void Point<T>::constrain(const Rect<T>& rect)
|
|||
template<>
|
||||
String IntPoint::to_string() const
|
||||
{
|
||||
return String::format("[%d,%d]", x(), y());
|
||||
return String::formatted("[{},{}]", x(), y());
|
||||
}
|
||||
|
||||
template<>
|
||||
String FloatPoint::to_string() const
|
||||
{
|
||||
return String::format("[%f,%f]", x(), y());
|
||||
return String::formatted("[{},{}]", x(), y());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue