summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/RiivolutionBootWidget.cpp
diff options
context:
space:
mode:
authorDentomologist <dentomologist@gmail.com>2023-11-04 14:01:39 -0700
committerDentomologist <dentomologist@gmail.com>2023-11-04 14:14:14 -0700
commit43e69d3e6ab699d2ae09dab377e11651e799f995 (patch)
tree89b892c7b16ae734c8c69ff65c8eb2c206d1a919 /Source/Core/DolphinQt/RiivolutionBootWidget.cpp
parentb7b8f468321dd102809b32cf55a69499c3225cf6 (diff)
DolphinQt: Remove unnecessary qOverloads
qOverload is used to disambiguate pointers to overloaded functions, but most of the usages in the code base were with non-overloaded functions.
Diffstat (limited to 'Source/Core/DolphinQt/RiivolutionBootWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/RiivolutionBootWidget.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/Source/Core/DolphinQt/RiivolutionBootWidget.cpp b/Source/Core/DolphinQt/RiivolutionBootWidget.cpp
index ff19d8597a..178fef2367 100644
--- a/Source/Core/DolphinQt/RiivolutionBootWidget.cpp
+++ b/Source/Core/DolphinQt/RiivolutionBootWidget.cpp
@@ -204,14 +204,13 @@ void RiivolutionBootWidget::MakeGUIForParsedFile(std::string path, std::string r
if (option.m_selected_choice <= option.m_choices.size())
selection->setCurrentIndex(static_cast<int>(option.m_selected_choice));
- connect(selection, qOverload<int>(&QComboBox::currentIndexChanged), this,
- [this, selection](int idx) {
- const auto gui_index = selection->currentData().value<GuiRiivolutionPatchIndex>();
- auto& selected_disc = m_discs[gui_index.m_disc_index].disc;
- auto& selected_section = selected_disc.m_sections[gui_index.m_section_index];
- auto& selected_option = selected_section.m_options[gui_index.m_option_index];
- selected_option.m_selected_choice = static_cast<u32>(gui_index.m_choice_index);
- });
+ connect(selection, &QComboBox::currentIndexChanged, this, [this, selection](int idx) {
+ const auto gui_index = selection->currentData().value<GuiRiivolutionPatchIndex>();
+ auto& selected_disc = m_discs[gui_index.m_disc_index].disc;
+ auto& selected_section = selected_disc.m_sections[gui_index.m_section_index];
+ auto& selected_option = selected_section.m_options[gui_index.m_option_index];
+ selected_option.m_selected_choice = static_cast<u32>(gui_index.m_choice_index);
+ });
grid_layout->addWidget(label, row, 0, 1, 1);
grid_layout->addWidget(selection, row, 1, 1, 1);