summaryrefslogtreecommitdiff
path: root/Applications/Browser/main.cpp
diff options
context:
space:
mode:
authorasynts <asynts@gmail.com>2020-10-04 12:39:02 +0200
committerAndreas Kling <kling@serenityos.org>2020-10-04 14:23:25 +0200
commit616af36d91ec895bd363fe42990804570b1d365e (patch)
treec99d61f353ce4bdafd4e7465b38159a58154762d /Applications/Browser/main.cpp
parentb23f66e151672969a0c0f7a9b2752aeadbe68aff (diff)
downloadserenity-616af36d91ec895bd363fe42990804570b1d365e.zip
Browser: Use format functions instead of printf.
Diffstat (limited to 'Applications/Browser/main.cpp')
-rw-r--r--Applications/Browser/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Applications/Browser/main.cpp b/Applications/Browser/main.cpp
index b12c8ab8b5..f9a3408bac 100644
--- a/Applications/Browser/main.cpp
+++ b/Applications/Browser/main.cpp
@@ -144,7 +144,7 @@ int main(int argc, char** argv)
tab_widget.on_change = [&](auto& active_widget) {
auto& tab = static_cast<Browser::Tab&>(active_widget);
- window->set_title(String::format("%s - Browser", tab.title().characters()));
+ window->set_title(String::formatted("{} - Browser", tab.title()));
tab.did_become_active();
};
@@ -171,7 +171,7 @@ int main(int argc, char** argv)
new_tab.on_title_change = [&](auto title) {
tab_widget.set_tab_title(new_tab, title);
if (tab_widget.active_widget() == &new_tab)
- window->set_title(String::format("%s - Browser", title.characters()));
+ window->set_title(String::formatted("{} - Browser", title));
};
new_tab.on_favicon_change = [&](auto& bitmap) {
@@ -193,7 +193,7 @@ int main(int argc, char** argv)
new_tab.load(url);
- dbg() << "Added new tab " << &new_tab << ", loading " << url;
+ dbgf("Added new tab {:p}, loading {}", &new_tab, url);
if (activate)
tab_widget.set_active_widget(&new_tab);