AK: Use new format functions.

This commit is contained in:
asynts 2020-10-07 14:02:42 +02:00 committed by Andreas Kling
commit 1d96d5eea4
Notes: sideshowbarker 2024-07-19 01:58:58 +09:00
13 changed files with 74 additions and 91 deletions

View file

@ -306,7 +306,7 @@ URL URL::complete_url(const String& string) const
return {};
if (string.starts_with("//")) {
URL url(String::format("%s:%s", m_protocol.characters(), string.characters()));
URL url(String::formatted("{}:{}", m_protocol, string));
if (url.is_valid())
return url;
}