Qt: fix some warnings
This commit is contained in:
@@ -136,6 +136,7 @@ bool config_checker::check_config(QString content, QString& result, bool is_log)
|
|||||||
case cfg::type::_enum:
|
case cfg::type::_enum:
|
||||||
case cfg::type::_int:
|
case cfg::type::_int:
|
||||||
case cfg::type::uint:
|
case cfg::type::uint:
|
||||||
|
case cfg::type::uint128:
|
||||||
case cfg::type::string:
|
case cfg::type::string:
|
||||||
{
|
{
|
||||||
const std::string val = base->to_string();
|
const std::string val = base->to_string();
|
||||||
|
|||||||
@@ -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_2: index = 2; break;
|
||||||
case gui::shortcuts::shortcut::gw_savestate_3: index = 3; break;
|
case gui::shortcuts::shortcut::gw_savestate_3: index = 3; break;
|
||||||
case gui::shortcuts::shortcut::gw_savestate_4: index = 4; break;
|
case gui::shortcuts::shortcut::gw_savestate_4: index = 4; break;
|
||||||
|
default: break; // unreachable
|
||||||
}
|
}
|
||||||
|
|
||||||
boot_current_game_savestate(false, index);
|
boot_current_game_savestate(false, index);
|
||||||
|
|||||||
@@ -439,7 +439,7 @@ figure_creator_dialog::figure_creator_dialog(QWidget* parent, u8 slot)
|
|||||||
QComboBox* combo_figlist = new QComboBox();
|
QComboBox* combo_figlist = new QComboBox();
|
||||||
|
|
||||||
// Lambda to populate the combo box based on series filter
|
// 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();
|
combo_figlist->clear();
|
||||||
QStringList filterlist;
|
QStringList filterlist;
|
||||||
|
|||||||
Reference in New Issue
Block a user