Fixed compiler warnings.

This commit is contained in:
Leonardo Zide 2020-01-05 15:19:50 -08:00
parent 8f48b09ae3
commit 9bc99235ef
2 changed files with 4 additions and 2 deletions

View file

@ -572,7 +572,9 @@ void lcPartSelectionListView::SetCategory(lcPartCategoryType Type, int Index)
case lcPartCategoryType::Category:
mListModel->SetCategory(Index);
break;
}
case lcPartCategoryType::Count:
break;
}
setCurrentIndex(mListModel->index(0, 0));
}

View file

@ -175,7 +175,7 @@ void lcQPreferencesDialog::accept()
mOptions->Preferences.mMouseSensitivity = ui->mouseSensitivity->value();
int Language = ui->Language->currentIndex();
if (Language < 0 || Language > LC_ARRAY_COUNT(gLanguageLocales))
if (Language < 0 || Language > static_cast<int>(LC_ARRAY_COUNT(gLanguageLocales)))
Language = 0;
mOptions->Language = gLanguageLocales[Language];