Browse Source
Merge pull request #12123 from merryhime/explicit-this
Explicit this
pull/15/merge
liamwhite
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
3 deletions
-
src/yuzu/configuration/shared_widget.cpp
-
src/yuzu/game_list_worker.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); |
|
|
|
} |
|
|
|
|
|
|
|
@ -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(); |
|
|
|
} |