From 43e69d3e6ab699d2ae09dab377e11651e799f995 Mon Sep 17 00:00:00 2001 From: Dentomologist Date: Sat, 4 Nov 2023 14:01:39 -0700 Subject: 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. --- Source/Core/DolphinQt/RiivolutionBootWidget.cpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'Source/Core/DolphinQt/RiivolutionBootWidget.cpp') 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(option.m_selected_choice)); - connect(selection, qOverload(&QComboBox::currentIndexChanged), this, - [this, selection](int idx) { - const auto gui_index = selection->currentData().value(); - 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(gui_index.m_choice_index); - }); + connect(selection, &QComboBox::currentIndexChanged, this, [this, selection](int idx) { + const auto gui_index = selection->currentData().value(); + 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(gui_index.m_choice_index); + }); grid_layout->addWidget(label, row, 0, 1, 1); grid_layout->addWidget(selection, row, 1, 1, 1); -- cgit v1.2.3