handle some warnings

This commit is contained in:
Megamouse 2018-01-12 12:33:37 +01:00 committed by Ivan
parent ef6a36241e
commit 2053de0885
10 changed files with 13 additions and 13 deletions

View file

@ -1128,10 +1128,10 @@ int game_list_frame::PopulateGameList()
return result;
}
void game_list_frame::PopulateGameGrid(uint maxCols, const QSize& image_size, const QColor& image_color)
void game_list_frame::PopulateGameGrid(int maxCols, const QSize& image_size, const QColor& image_color)
{
uint r = 0;
uint c = 0;
int r = 0;
int c = 0;
std::string selected_item = CurrentSelectionIconPath();
@ -1200,7 +1200,7 @@ void game_list_frame::PopulateGameGrid(uint maxCols, const QSize& image_size, co
if (c != 0)
{ // if left over games exist -- if empty entries exist
for (uint col = c; col < maxCols; ++col)
for (int col = c; col < maxCols; ++col)
{
QTableWidgetItem* emptyItem = new QTableWidgetItem();
emptyItem->setFlags(Qt::NoItemFlags);