From d092381d25d25b97fb2a7358070ad6c25648b97d Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 8 Jun 2023 10:55:27 -0400 Subject: [PATCH] InfinityBaseWindow: Collapse lambda into direct member pointer The parameters to this match the requirements of the toggled() function exactly, so we can pass the function directly into the connect call. --- Source/Core/DolphinQt/InfinityBase/InfinityBaseWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/DolphinQt/InfinityBase/InfinityBaseWindow.cpp b/Source/Core/DolphinQt/InfinityBase/InfinityBaseWindow.cpp index 0a2d495ac6..3d6a3a7d3c 100644 --- a/Source/Core/DolphinQt/InfinityBase/InfinityBaseWindow.cpp +++ b/Source/Core/DolphinQt/InfinityBase/InfinityBaseWindow.cpp @@ -55,7 +55,7 @@ void InfinityBaseWindow::CreateMainWindow() checkbox_layout->setAlignment(Qt::AlignHCenter); m_checkbox = new QCheckBox(tr("Emulate Infinity Base"), this); m_checkbox->setChecked(Config::Get(Config::MAIN_EMULATE_INFINITY_BASE)); - connect(m_checkbox, &QCheckBox::toggled, [=](bool checked) { EmulateBase(checked); }); + connect(m_checkbox, &QCheckBox::toggled, this, &InfinityBaseWindow::EmulateBase); checkbox_layout->addWidget(m_checkbox); checkbox_group->setLayout(checkbox_layout); main_layout->addWidget(checkbox_group);