From 216ff53bb9fe9ea10325708b959313f31e640f84 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 24 Dec 2021 02:13:50 +0100 Subject: [PATCH] C++11 Lambda FTW! --- gtk2_ardour/editor_ops.cc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index daacc76993..292f0f1585 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -4105,11 +4105,6 @@ Editor::freeze_route () current_interthread_info = 0; } -static void -set_slot (uint32_t* t, uint32_t v) { - *t = v; -} - void Editor::bounce_range_selection (BounceTarget target, bool enable_processing) { @@ -4192,7 +4187,7 @@ Editor::bounce_range_selection (BounceTarget target, bool enable_processing) for (int c = 0; c < TriggerBox::default_triggers_per_box; ++c) { // XXX ('A' + x) is not translatable, TODO abstract using nth_letter() - tslot->AddMenuElem (Menu_Helpers::MenuElem (string_compose ("%1", (char)('A' + c)), sigc::bind (sigc::ptr_fun (set_slot), &trigger_slot, c))); + tslot->AddMenuElem (Menu_Helpers::MenuElem (string_compose ("%1", (char)('A' + c)), sigc::bind ([] (uint32_t* t, uint32_t v) {*t = v;}, &trigger_slot, c))); } tslot->set_active ("A");