mirror of
https://github.com/leozide/leocad
synced 2025-01-18 22:26:44 +01:00
Fixed compiler warnings.
This commit is contained in:
parent
8f48b09ae3
commit
9bc99235ef
2 changed files with 4 additions and 2 deletions
|
@ -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));
|
||||
}
|
||||
|
|
|
@ -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];
|
||||
|
||||
|
|
Loading…
Reference in a new issue