summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-11-22 04:17:42 +0100
committerGitHub <noreply@github.com>2023-11-22 04:17:42 +0100
commit91c12db07098625756338e682a4d300a27d7978c (patch)
treed2afd7bce076844949ed5829dd19f46e64b9a4a1 /src
parentMerge pull request #12107 from daisymlleung/patch-1 (diff)
parentgame_list_worker: Explicit caputure of 'this' (diff)
downloadyuzu-91c12db07098625756338e682a4d300a27d7978c.tar
yuzu-91c12db07098625756338e682a4d300a27d7978c.tar.gz
yuzu-91c12db07098625756338e682a4d300a27d7978c.tar.bz2
yuzu-91c12db07098625756338e682a4d300a27d7978c.tar.lz
yuzu-91c12db07098625756338e682a4d300a27d7978c.tar.xz
yuzu-91c12db07098625756338e682a4d300a27d7978c.tar.zst
yuzu-91c12db07098625756338e682a4d300a27d7978c.zip
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/configuration/shared_widget.cpp4
-rw-r--r--src/yuzu/game_list_worker.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/yuzu/configuration/shared_widget.cpp b/src/yuzu/configuration/shared_widget.cpp
index ea8d7add4..941683a43 100644
--- a/src/yuzu/configuration/shared_widget.cpp
+++ b/src/yuzu/configuration/shared_widget.cpp
@@ -194,7 +194,7 @@ QWidget* Widget::CreateRadioGroup(std::function<std::string()>& serializer,
return group;
}
- const auto get_selected = [=]() -> int {
+ const auto get_selected = [this]() -> int {
for (const auto& [id, button] : radio_buttons) {
if (button->isChecked()) {
return id;
@@ -203,7 +203,7 @@ QWidget* Widget::CreateRadioGroup(std::function<std::string()>& serializer,
return -1;
};
- const auto set_index = [=](u32 value) {
+ const auto set_index = [this](u32 value) {
for (const auto& [id, button] : radio_buttons) {
button->setChecked(id == value);
}
diff --git a/src/yuzu/game_list_worker.cpp b/src/yuzu/game_list_worker.cpp
index 69be21027..307eac02d 100644
--- a/src/yuzu/game_list_worker.cpp
+++ b/src/yuzu/game_list_worker.cpp
@@ -479,6 +479,6 @@ void GameListWorker::run() {
}
}
- RecordEvent([=](GameList* game_list) { game_list->DonePopulating(watch_list); });
+ RecordEvent([this](GameList* game_list) { game_list->DonePopulating(watch_list); });
processing_completed.Set();
}