mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00:00
Merge pull request #10949 from Zopolis4/reprecated
Resolve C++20 deprecation warnings
This commit is contained in:
commit
b0ac5ac6af
10 changed files with 29 additions and 23 deletions
|
@ -357,7 +357,7 @@ void MainWindow::ShutdownControllers()
|
|||
|
||||
void MainWindow::InitCoreCallbacks()
|
||||
{
|
||||
connect(&Settings::Instance(), &Settings::EmulationStateChanged, this, [=](Core::State state) {
|
||||
connect(&Settings::Instance(), &Settings::EmulationStateChanged, this, [this](Core::State state) {
|
||||
if (state == Core::State::Uninitialized)
|
||||
OnStopComplete();
|
||||
if (state != Core::State::Uninitialized && NetPlay::IsNetPlayRunning() && m_controllers_window)
|
||||
|
@ -374,7 +374,7 @@ void MainWindow::InitCoreCallbacks()
|
|||
|
||||
// Handle file open events
|
||||
auto* filter = new FileOpenEventFilter(QGuiApplication::instance());
|
||||
connect(filter, &FileOpenEventFilter::fileOpened, this, [=](const QString& file_name) {
|
||||
connect(filter, &FileOpenEventFilter::fileOpened, this, [this](const QString& file_name) {
|
||||
StartGame(BootParameters::GenerateFromFile(file_name.toStdString()));
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue