RMG-Input: only capture required variables in signal lambdas

This commit is contained in:
Rosalie Wanders
2025-10-17 21:34:32 +02:00
parent 30121f2db7
commit 2af46a43a6
4 changed files with 4 additions and 4 deletions
@@ -26,7 +26,7 @@ void AddMappingButton::Initialize(ControllerWidget* widget, MappingButton* butto
this->controllerWidget = widget;
this->mappingButton = button;
connect(this, &QPushButton::released, [=, this]
connect(this, &QPushButton::released, [this]
{
emit this->controllerWidget->on_AddMappingButton_Released(this->mappingButton);
});
@@ -31,7 +31,7 @@ void HotkeyButton::Initialize(HotkeysDialog* dialog)
{
this->hotkeysDialog = dialog;
connect(this, &QPushButton::released, [=, this]
connect(this, &QPushButton::released, [this]
{
emit this->hotkeysDialog->on_HotkeyButton_Released(this);
});
@@ -31,7 +31,7 @@ void MappingButton::Initialize(ControllerWidget* widget)
{
this->controllerWidget = widget;
connect(this, &QPushButton::released, [=, this]
connect(this, &QPushButton::released, [this]
{
emit this->controllerWidget->on_MappingButton_Released(this);
});
@@ -26,7 +26,7 @@ void RemoveMappingButton::Initialize(ControllerWidget* widget, MappingButton* bu
this->controllerWidget = widget;
this->mappingButton = button;
connect(this, &QPushButton::released, [=, this]
connect(this, &QPushButton::released, [this]
{
emit this->controllerWidget->on_RemoveMappingButton_Released(this->mappingButton);
});