diff options
author | sin-ack <sin-ack@users.noreply.github.com> | 2021-08-30 18:12:48 +0000 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2021-09-02 03:47:47 +0430 |
commit | 8ea22121ac8fe0c0e3a073ecd607713f45b34ff3 (patch) | |
tree | dbdfc49938925ea75a70894d2c5de47912184c6b /Userland/Applications/Browser | |
parent | e9121f8b1f9d31f0da89f34eac69a7da9f2901a0 (diff) | |
download | serenity-8ea22121ac8fe0c0e3a073ecd607713f45b34ff3.zip |
Userland: Migrate to argument-less deferred_invoke
Only one place used this argument and it was to hold on to a strong ref
for the object. Since we already do that now, there's no need to keep
this argument around since this can be easily captured.
This commit contains no changes.
Diffstat (limited to 'Userland/Applications/Browser')
-rw-r--r-- | Userland/Applications/Browser/BrowserWindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Applications/Browser/BrowserWindow.cpp b/Userland/Applications/Browser/BrowserWindow.cpp index 88d1fc6f34..7d77766c33 100644 --- a/Userland/Applications/Browser/BrowserWindow.cpp +++ b/Userland/Applications/Browser/BrowserWindow.cpp @@ -434,7 +434,7 @@ void BrowserWindow::create_new_tab(URL url, bool activate) }; new_tab.on_tab_close_request = [this](auto& tab) { - m_tab_widget->deferred_invoke([this, &tab](auto&) { + m_tab_widget->deferred_invoke([this, &tab] { m_tab_widget->remove_tab(tab); m_tab_widget->set_bar_visible(!is_fullscreen() && m_tab_widget->children().size() > 1); if (m_tab_widget->children().is_empty()) @@ -443,7 +443,7 @@ void BrowserWindow::create_new_tab(URL url, bool activate) }; new_tab.on_tab_close_other_request = [this](auto& tab) { - m_tab_widget->deferred_invoke([this, &tab](auto&) { + m_tab_widget->deferred_invoke([this, &tab] { m_tab_widget->remove_all_tabs_except(tab); VERIFY(m_tab_widget->children().size() == 1); m_tab_widget->set_bar_visible(false); |