Fix warning: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
This commit is contained in:
parent
af5013b60f
commit
b316ce6fdd
|
@ -64,7 +64,7 @@ void SkylanderPortalWindow::CreateMainWindow()
|
|||
checkbox_layout->setAlignment(Qt::AlignHCenter);
|
||||
m_checkbox = new QCheckBox(tr("Emulate Skylander Portal"), this);
|
||||
m_checkbox->setChecked(Config::Get(Config::MAIN_EMULATE_SKYLANDER_PORTAL));
|
||||
connect(m_checkbox, &QCheckBox::toggled, [=](bool checked) { EmulatePortal(checked); });
|
||||
connect(m_checkbox, &QCheckBox::toggled, [&](bool checked) { EmulatePortal(checked); });
|
||||
checkbox_layout->addWidget(m_checkbox);
|
||||
checkbox_group->setLayout(checkbox_layout);
|
||||
main_layout->addWidget(checkbox_group);
|
||||
|
|
Loading…
Reference in New Issue