From 9d550a99ea9f2f951e1f328ca819048fd3edcd33 Mon Sep 17 00:00:00 2001 From: magni-mar <135731785+magni-mar@users.noreply.github.com> Date: Mon, 4 Dec 2023 19:22:55 +0000 Subject: [PATCH] remove lambda from slot creation (#313) * remove lambda from slot creation --- libs/ipc/inc/public/tfc/ipc.hpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/libs/ipc/inc/public/tfc/ipc.hpp b/libs/ipc/inc/public/tfc/ipc.hpp index 1fc40aa8f5..385914df01 100644 --- a/libs/ipc/inc/public/tfc/ipc.hpp +++ b/libs/ipc/inc/public/tfc/ipc.hpp @@ -79,14 +79,8 @@ class slot { std::string_view description, tfc::stx::invocable auto&& callback) requires(!std::is_lvalue_reference_v) - : slot_{ details::slot_callback::create( - ctx, - name, - [this, callb = std::forward(callback)](value_t const& new_value) { - callb(new_value); - dbus_slot_.emit_value(new_value); - }) }, - dbus_slot_{ connection, full_name() }, client_{ connection }, + : slot_{ details::slot_callback::create(ctx, name) }, dbus_slot_{ connection, full_name() }, + client_{ connection }, filters_{ dbus_slot_.interface(), // store the callers callback in this lambda [this, callb = std::forward(callback)](value_t const& new_value) {