mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Merge pull request #10949 from Zopolis4/reprecated
Resolve C++20 deprecation warnings
This commit is contained in:
@ -86,7 +86,7 @@ MenuBar::MenuBar(QWidget* parent) : QMenuBar(parent)
|
||||
AddHelpMenu();
|
||||
|
||||
connect(&Settings::Instance(), &Settings::EmulationStateChanged, this,
|
||||
[=](Core::State state) { OnEmulationStateChanged(state); });
|
||||
[=, this](Core::State state) { OnEmulationStateChanged(state); });
|
||||
connect(Host::GetInstance(), &Host::UpdateDisasmDialog, this,
|
||||
[this] { OnEmulationStateChanged(Core::GetState()); });
|
||||
|
||||
@ -339,7 +339,7 @@ void MenuBar::AddStateLoadMenu(QMenu* emu_menu)
|
||||
{
|
||||
QAction* action = m_state_load_slots_menu->addAction(QString{});
|
||||
|
||||
connect(action, &QAction::triggered, this, [=]() { emit StateLoadSlotAt(i); });
|
||||
connect(action, &QAction::triggered, this, [=, this]() { emit StateLoadSlotAt(i); });
|
||||
}
|
||||
}
|
||||
|
||||
@ -356,7 +356,7 @@ void MenuBar::AddStateSaveMenu(QMenu* emu_menu)
|
||||
{
|
||||
QAction* action = m_state_save_slots_menu->addAction(QString{});
|
||||
|
||||
connect(action, &QAction::triggered, this, [=]() { emit StateSaveSlotAt(i); });
|
||||
connect(action, &QAction::triggered, this, [=, this]() { emit StateSaveSlotAt(i); });
|
||||
}
|
||||
}
|
||||
|
||||
@ -373,7 +373,7 @@ void MenuBar::AddStateSlotMenu(QMenu* emu_menu)
|
||||
if (Settings::Instance().GetStateSlot() == i)
|
||||
action->setChecked(true);
|
||||
|
||||
connect(action, &QAction::triggered, this, [=]() { emit SetStateSlot(i); });
|
||||
connect(action, &QAction::triggered, this, [=, this]() { emit SetStateSlot(i); });
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user