mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-09 09:34:57 +09:00
LibJS: Use String::formatted() in various other places
This commit is contained in:
parent
2e2571743b
commit
123f98201e
Notes:
sideshowbarker
2024-07-19 02:03:54 +09:00
Author: https://github.com/linusg
Commit: 123f98201e
Pull-request: https://github.com/SerenityOS/serenity/pull/3681
7 changed files with 23 additions and 22 deletions
|
@ -68,7 +68,7 @@ public:
|
|||
String time_string() const { return m_datetime.to_string("%T GMT+0000 (UTC)"); }
|
||||
String string() const
|
||||
{
|
||||
return String::format("%s %s", date_string().characters(), time_string().characters());
|
||||
return String::formatted("{} {}", date_string(), time_string());
|
||||
}
|
||||
|
||||
String iso_date_string() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue