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
Notes: sideshowbarker 2024-07-19 01:59:02 +09:00
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) {