diff options
| author | Zopolis4 <creatorsmithmdt@gmail.com> | 2022-08-08 11:25:19 +1000 |
|---|---|---|
| committer | Zopolis4 <creatorsmithmdt@gmail.com> | 2022-08-08 11:25:19 +1000 |
| commit | e54818e60dc820962290ef3600fc77a7882ba98e (patch) | |
| tree | aca42f773cc358eec72b0c312e83112886441bdd /Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp | |
| parent | e638bb658fa2bbaa6e46148816598fe3ab79dc6e (diff) | |
Resolve "implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20" warning
Diffstat (limited to 'Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp b/Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp index 0353a69eea..733da068c9 100644 --- a/Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp +++ b/Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp @@ -41,8 +41,9 @@ GeneralWidget::GeneralWidget(X11Utils::XRRConfiguration* xrr_config, GraphicsWin emit BackendChanged(QString::fromStdString(Config::Get(Config::MAIN_GFX_BACKEND))); connect(parent, &GraphicsWindow::BackendChanged, this, &GeneralWidget::OnBackendChanged); - connect(&Settings::Instance(), &Settings::EmulationStateChanged, this, - [=](Core::State state) { OnEmulationStateChanged(state != Core::State::Uninitialized); }); + connect(&Settings::Instance(), &Settings::EmulationStateChanged, this, [this](Core::State state) { + OnEmulationStateChanged(state != Core::State::Uninitialized); + }); OnEmulationStateChanged(Core::GetState() != Core::State::Uninitialized); } |
