mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2024-12-23 09:41:22 -08:00
shared_widget: Explicit capture of 'this'
This commit is contained in:
parent
cddb28cf26
commit
c4f6c3b00b
@ -194,7 +194,7 @@ QWidget* Widget::CreateRadioGroup(std::function<std::string()>& serializer,
|
|||||||
return group;
|
return group;
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto get_selected = [=]() -> int {
|
const auto get_selected = [this]() -> int {
|
||||||
for (const auto& [id, button] : radio_buttons) {
|
for (const auto& [id, button] : radio_buttons) {
|
||||||
if (button->isChecked()) {
|
if (button->isChecked()) {
|
||||||
return id;
|
return id;
|
||||||
@ -203,7 +203,7 @@ QWidget* Widget::CreateRadioGroup(std::function<std::string()>& serializer,
|
|||||||
return -1;
|
return -1;
|
||||||
};
|
};
|
||||||
|
|
||||||
const auto set_index = [=](u32 value) {
|
const auto set_index = [this](u32 value) {
|
||||||
for (const auto& [id, button] : radio_buttons) {
|
for (const auto& [id, button] : radio_buttons) {
|
||||||
button->setChecked(id == value);
|
button->setChecked(id == value);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user