diff --git a/src/citra_qt/camera/qt_multimedia_camera.cpp b/src/citra_qt/camera/qt_multimedia_camera.cpp index 1c9d07f76e..0e977cc6e8 100644 --- a/src/citra_qt/camera/qt_multimedia_camera.cpp +++ b/src/citra_qt/camera/qt_multimedia_camera.cpp @@ -131,7 +131,7 @@ std::shared_ptr QtMultimediaCameraHandler::GetHandler if (loaded.count(camera_name)) { return loaded.at(camera_name); } - for (int i = 0; i < handlers.size(); i++) { + for (std::size_t i = 0; i < handlers.size(); i++) { if (!status[i]) { LOG_INFO(Service_CAM, "Successfully got handler {}", i); status[i] = true; @@ -145,7 +145,7 @@ std::shared_ptr QtMultimediaCameraHandler::GetHandler void QtMultimediaCameraHandler::ReleaseHandler( const std::shared_ptr& handler) { - for (int i = 0; i < handlers.size(); i++) { + for (std::size_t i = 0; i < handlers.size(); i++) { if (handlers[i] == handler) { LOG_INFO(Service_CAM, "Successfully released handler {}", i); status[i] = false; @@ -217,7 +217,7 @@ void QtMultimediaCameraHandler::ResumeCameras() { void QtMultimediaCameraHandler::ReleaseHandlers() { StopCameras(); LOG_INFO(Service_CAM, "Releasing all handlers"); - for (int i = 0; i < handlers.size(); i++) { + for (std::size_t i = 0; i < handlers.size(); i++) { status[i] = false; handlers[i]->started = false; } diff --git a/src/citra_qt/configuration/configure_camera.cpp b/src/citra_qt/configuration/configure_camera.cpp index c9b4471537..76fe904fa9 100644 --- a/src/citra_qt/configuration/configure_camera.cpp +++ b/src/citra_qt/configuration/configure_camera.cpp @@ -241,7 +241,7 @@ void ConfigureCamera::timerEvent(QTimerEvent* event) { void ConfigureCamera::SetConfiguration() { int index = GetSelectedCameraIndex(); - for (int i = 0; i < Implementations.size(); i++) { + for (std::size_t i = 0; i < Implementations.size(); i++) { if (Implementations[i] == camera_name[index]) { ui->image_source->setCurrentIndex(i); }