mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:08:10 +00:00
Browser: Use format functions instead of printf.
This commit is contained in:
parent
b23f66e151
commit
616af36d91
6 changed files with 19 additions and 18 deletions
|
@ -78,7 +78,7 @@ static void start_download(const URL& url)
|
|||
{
|
||||
auto window = GUI::Window::construct();
|
||||
window->resize(300, 150);
|
||||
window->set_title(String::format("0%% of %s", url.basename().characters()));
|
||||
window->set_title(String::formatted("0% of {}", url.basename()));
|
||||
window->set_resizable(false);
|
||||
window->set_main_widget<DownloadWidget>(url);
|
||||
window->show();
|
||||
|
@ -504,7 +504,7 @@ void Tab::did_become_active()
|
|||
m_statusbar->set_text("");
|
||||
return;
|
||||
}
|
||||
m_statusbar->set_text(String::format("Loading (%d pending resources...)", Web::ResourceLoader::the().pending_loads()));
|
||||
m_statusbar->set_text(String::formatted("Loading ({} pending resources...)", Web::ResourceLoader::the().pending_loads()));
|
||||
};
|
||||
|
||||
BookmarksBarWidget::the().on_bookmark_click = [this](auto& url, unsigned modifiers) {
|
||||
|
@ -546,4 +546,5 @@ Web::WebViewHooks& Tab::hooks()
|
|||
return *m_page_view;
|
||||
return *m_web_content_view;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue