From 12925b5c2d1904062984ee1119f8c3f8a5ea8243 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Tue, 23 Oct 2018 22:05:37 -0300 Subject: [PATCH] Settings: Change from foreach to c++11 for MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- src/Settings/VideoSettings.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Settings/VideoSettings.cc b/src/Settings/VideoSettings.cc index a76d588a2..698d7c879 100644 --- a/src/Settings/VideoSettings.cc +++ b/src/Settings/VideoSettings.cc @@ -71,7 +71,7 @@ VideoSettings::VideoSettings(QObject* parent) #endif #ifndef QGC_DISABLE_UVC QList cameras = QCameraInfo::availableCameras(); - foreach (const QCameraInfo &cameraInfo, cameras) { + for (const QCameraInfo &cameraInfo: cameras) { videoSourceList.append(cameraInfo.description()); } #endif @@ -82,7 +82,7 @@ VideoSettings::VideoSettings(QObject* parent) videoSourceList.insert(0, videoDisabled); } QVariantList videoSourceVarList; - foreach (const QString& videoSource, videoSourceList) { + for (const QString& videoSource: videoSourceList) { videoSourceVarList.append(QVariant::fromValue(videoSource)); } _nameToMetaDataMap[videoSourceName]->setEnumInfo(videoSourceList, videoSourceVarList); -- 2.22.0