summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/ComboBox.cpp
diff options
context:
space:
mode:
authorsin-ack <sin-ack@users.noreply.github.com>2021-08-30 18:12:48 +0000
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2021-09-02 03:47:47 +0430
commit8ea22121ac8fe0c0e3a073ecd607713f45b34ff3 (patch)
treedbdfc49938925ea75a70894d2c5de47912184c6b /Userland/Libraries/LibGUI/ComboBox.cpp
parente9121f8b1f9d31f0da89f34eac69a7da9f2901a0 (diff)
downloadserenity-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/Libraries/LibGUI/ComboBox.cpp')
-rw-r--r--Userland/Libraries/LibGUI/ComboBox.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/ComboBox.cpp b/Userland/Libraries/LibGUI/ComboBox.cpp
index e46f0be84f..5eee3508ab 100644
--- a/Userland/Libraries/LibGUI/ComboBox.cpp
+++ b/Userland/Libraries/LibGUI/ComboBox.cpp
@@ -111,7 +111,7 @@ ComboBox::ComboBox()
};
m_list_view->on_activation = [this](auto& index) {
- deferred_invoke([this, index](auto&) {
+ deferred_invoke([this, index] {
selection_updated(index);
if (on_change)
on_change(m_editor->text(), index);