diff options
| author | JosJuice <josjuice@gmail.com> | 2022-02-18 21:05:42 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-18 21:05:42 +0100 |
| commit | 35b436bd6b17fb5903e534975f81cf6f6d8b08e2 (patch) | |
| tree | 2f171b7cbcf095129460ddec06fc8cc968799490 /Source/Core/DolphinQt/RiivolutionBootWidget.cpp | |
| parent | 92455f7cefc9094c6f80f3d446aa56c452460a72 (diff) | |
| parent | d2ebbfb91a7d50b0db12010392a594c12bbf1c44 (diff) | |
Merge pull request #10377 from Pokechu22/warning-fixes-jan-2022
Fix several compile warnings on GCC
Diffstat (limited to 'Source/Core/DolphinQt/RiivolutionBootWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/RiivolutionBootWidget.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/DolphinQt/RiivolutionBootWidget.cpp b/Source/Core/DolphinQt/RiivolutionBootWidget.cpp index c70df8e770..ff19d8597a 100644 --- a/Source/Core/DolphinQt/RiivolutionBootWidget.cpp +++ b/Source/Core/DolphinQt/RiivolutionBootWidget.cpp @@ -207,10 +207,10 @@ void RiivolutionBootWidget::MakeGUIForParsedFile(std::string path, std::string r connect(selection, qOverload<int>(&QComboBox::currentIndexChanged), this, [this, selection](int idx) { const auto gui_index = selection->currentData().value<GuiRiivolutionPatchIndex>(); - auto& disc = m_discs[gui_index.m_disc_index].disc; - auto& section = disc.m_sections[gui_index.m_section_index]; - auto& option = section.m_options[gui_index.m_option_index]; - option.m_selected_choice = static_cast<u32>(gui_index.m_choice_index); + 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); |
