1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-21 12:45:08 +00:00

Demos: Use new format functions.

This commit is contained in:
asynts 2020-10-07 12:21:32 +02:00 committed by Andreas Kling
parent d781f3f6b5
commit 560c52989c
6 changed files with 34 additions and 45 deletions

View file

@ -46,7 +46,7 @@ int main(int argc, char** argv)
window->show();
view.on_title_change = [&](auto& title) {
window->set_title(String::format("%s - WebView", title.characters()));
window->set_title(String::formatted("{} - WebView", title));
};
view.on_link_hover = [&](auto& url) {