summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Merry2023-11-21 22:57:09 +0000
committerGravatar Merry2023-11-21 22:57:09 +0000
commitc4f6c3b00be9e735444a8067b652f35a70268f4a (patch)
tree1cd1879f9c76ca7629abec0732c4b836185b2559
parentMerge pull request #12107 from daisymlleung/patch-1 (diff)
downloadyuzu-c4f6c3b00be9e735444a8067b652f35a70268f4a.tar.gz
yuzu-c4f6c3b00be9e735444a8067b652f35a70268f4a.tar.xz
yuzu-c4f6c3b00be9e735444a8067b652f35a70268f4a.zip
shared_widget: Explicit capture of 'this'
-rw-r--r--src/yuzu/configuration/shared_widget.cpp4
1 files changed, 2 insertions, 2 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,
194 return group; 194 return group;
195 } 195 }
196 196
197 const auto get_selected = [=]() -> int { 197 const auto get_selected = [this]() -> int {
198 for (const auto& [id, button] : radio_buttons) { 198 for (const auto& [id, button] : radio_buttons) {
199 if (button->isChecked()) { 199 if (button->isChecked()) {
200 return id; 200 return id;
@@ -203,7 +203,7 @@ QWidget* Widget::CreateRadioGroup(std::function<std::string()>& serializer,
203 return -1; 203 return -1;
204 }; 204 };
205 205
206 const auto set_index = [=](u32 value) { 206 const auto set_index = [this](u32 value) {
207 for (const auto& [id, button] : radio_buttons) { 207 for (const auto& [id, button] : radio_buttons) {
208 button->setChecked(id == value); 208 button->setChecked(id == value);
209 } 209 }