Qt: fix some warnings

This commit is contained in:
Megamouse
2025-10-10 10:39:24 +02:00
parent 950c7768bc
commit 9e49b9100f
3 changed files with 3 additions and 1 deletions

View File

@@ -136,6 +136,7 @@ bool config_checker::check_config(QString content, QString& result, bool is_log)
case cfg::type::_enum:
case cfg::type::_int:
case cfg::type::uint:
case cfg::type::uint128:
case cfg::type::string:
{
const std::string val = base->to_string();

View File

@@ -336,6 +336,7 @@ void gs_frame::handle_shortcut(gui::shortcuts::shortcut shortcut_key, const QKey
case gui::shortcuts::shortcut::gw_savestate_2: index = 2; break;
case gui::shortcuts::shortcut::gw_savestate_3: index = 3; break;
case gui::shortcuts::shortcut::gw_savestate_4: index = 4; break;
default: break; // unreachable
}
boot_current_game_savestate(false, index);

View File

@@ -439,7 +439,7 @@ figure_creator_dialog::figure_creator_dialog(QWidget* parent, u8 slot)
QComboBox* combo_figlist = new QComboBox();
// Lambda to populate the combo box based on series filter
auto populate_combo = [=](int series_filter) -> u32
auto populate_combo = [=, this](int series_filter) -> u32
{
combo_figlist->clear();
QStringList filterlist;