global: Fix some warnings

This commit is contained in:
emufan4568
2022-07-21 10:14:42 +03:00
parent d51c720392
commit ff9b0dfe2f
8 changed files with 20 additions and 11 deletions

View File

@ -256,7 +256,8 @@ void ConfigureCamera::SetConfiguration() {
int index = GetSelectedCameraIndex();
for (std::size_t i = 0; i < Implementations.size(); i++) {
if (Implementations[i] == camera_name[index]) {
ui->image_source->setCurrentIndex(i);
int current_index = static_cast<int>(i);
ui->image_source->setCurrentIndex(current_index);
}
}
if (camera_name[index] == "image") {