misc: get rid of some compiler warnings

This commit is contained in:
Megamouse 2017-08-18 10:41:57 +02:00 committed by Ivan
parent 713c1a7a86
commit 0854ed2b51
7 changed files with 21 additions and 19 deletions

View file

@ -900,7 +900,7 @@ void main_window::BootRecentAction(const QAction* act)
LOG_ERROR(GENERAL, "Recent Game not valid, removed from Boot Recent list: %s", sstr(pth));
// refill menu with actions
for (uint i = 0; i < m_recentGameActs.count(); i++)
for (int i = 0; i < m_recentGameActs.count(); i++)
{
m_recentGameActs[i]->setShortcut(tr("Ctrl+%1").arg(i + 1));
m_recentGameActs[i]->setToolTip(m_rg_entries.at(i).second);
@ -1023,7 +1023,7 @@ void main_window::AddRecentAction(const q_string_pair& entry)
}
// refill menu with actions
for (uint i = 0; i < m_recentGameActs.count(); i++)
for (int i = 0; i < m_recentGameActs.count(); i++)
{
m_recentGameActs[i]->setShortcut(tr("Ctrl+%1").arg(i+1));
m_recentGameActs[i]->setToolTip(m_rg_entries.at(i).second);
@ -1273,7 +1273,7 @@ void main_window::CreateConnects()
resizeIcons(idx);
});
connect(gameListFrame, &game_list_frame::RequestSaveSliderPos, [=](const bool& save){ m_save_slider_pos = true; });
connect(gameListFrame, &game_list_frame::RequestSaveSliderPos, [=](const bool& save){ Q_UNUSED(save); m_save_slider_pos = true; });
connect(gameListFrame, &game_list_frame::RequestListModeActSet, [=](const bool& isList)
{
isList ? ui->setlistModeListAct->trigger() : ui->setlistModeGridAct->trigger();
@ -1402,7 +1402,7 @@ void main_window::ConfigureGuiFromSettings(bool configureAll)
}
m_recentGameActs.clear();
// Fill the recent games menu
for (uint i = 0; i < m_rg_entries.count(); i++)
for (int i = 0; i < m_rg_entries.count(); i++)
{
// create new action
QAction* act = CreateRecentAction(m_rg_entries[i], i + 1);