Commit a4d7af96 authored by Patrick José Pereira's avatar Patrick José Pereira

FlightDisplay: Change from foreach to c++11 for

Signed-off-by: 's avatarPatrick José Pereira <patrickelectric@gmail.com>
parent 3be77bd2
...@@ -66,7 +66,7 @@ VideoManager::setToolbox(QGCToolbox *toolbox) ...@@ -66,7 +66,7 @@ VideoManager::setToolbox(QGCToolbox *toolbox)
#ifndef QGC_DISABLE_UVC #ifndef QGC_DISABLE_UVC
// If we are using a UVC camera setup the device name // If we are using a UVC camera setup the device name
QList<QCameraInfo> cameras = QCameraInfo::availableCameras(); QList<QCameraInfo> cameras = QCameraInfo::availableCameras();
foreach (const QCameraInfo &cameraInfo, cameras) { for (const QCameraInfo &cameraInfo: cameras) {
if(cameraInfo.description() == videoSource) { if(cameraInfo.description() == videoSource) {
_videoSourceID = cameraInfo.deviceName(); _videoSourceID = cameraInfo.deviceName();
emit videoSourceIDChanged(); emit videoSourceIDChanged();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment