mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-25 11:42:11 +00:00
Demos: Use new format functions.
This commit is contained in:
parent
d781f3f6b5
commit
560c52989c
Notes:
sideshowbarker
2024-07-19 01:59:02 +09:00
Author: https://github.com/asynts
Commit: 560c52989c
Pull-request: https://github.com/SerenityOS/serenity/pull/3705
Reviewed-by: https://github.com/awesomekling
6 changed files with 34 additions and 45 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue