summaryrefslogtreecommitdiffstats
path: root/src/plugins/qnx/camera/bbcamerasession.cpp
diff options
context:
space:
mode:
authorAnton Kudryavtsev <a.kudryavtsev@netris.ru>2016-01-15 11:54:52 +0300
committerYoann Lopes <yoann.lopes@theqtcompany.com>2016-01-15 13:57:27 +0000
commit559a05605cc622142b0fbe76bc8edd4ab0f86d50 (patch)
treeb1f1aadedef518dbef097ba237b8e031d58fd697 /src/plugins/qnx/camera/bbcamerasession.cpp
parent50a8f44fa47ec00769b55058c66c94390735cf57 (diff)
QNX plugin: replace foreach with range-based for
Change-Id: Ia95da6282ae4dcbeff024655b78788e15ad0e18c Reviewed-by: Yoann Lopes <yoann.lopes@theqtcompany.com>
Diffstat (limited to 'src/plugins/qnx/camera/bbcamerasession.cpp')
-rw-r--r--src/plugins/qnx/camera/bbcamerasession.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/qnx/camera/bbcamerasession.cpp b/src/plugins/qnx/camera/bbcamerasession.cpp
index 66243187b..13af75e2d 100644
--- a/src/plugins/qnx/camera/bbcamerasession.cpp
+++ b/src/plugins/qnx/camera/bbcamerasession.cpp
@@ -526,7 +526,7 @@ void BbCameraSession::applyVideoSettings()
QList<QSize> sizes = supportedViewfinderResolutions(QCamera::CaptureVideo);
std::reverse(sizes.begin(), sizes.end()); // use smallest possible resolution
- foreach (const QSize &size, sizes) {
+ for (const QSize &size : qAsConst(sizes)) {
// search for viewfinder resolution with the same aspect ratio
if (qFuzzyCompare(aspectRatio, (static_cast<qreal>(size.width())/static_cast<qreal>(size.height())))) {
viewfinderResolution = size;
@@ -944,7 +944,7 @@ void BbCameraSession::applyConfiguration()
QSize viewfinderResolution;
QList<QSize> sizes = supportedViewfinderResolutions(QCamera::CaptureStillImage);
std::reverse(sizes.begin(), sizes.end()); // use smallest possible resolution
- foreach (const QSize &size, sizes) {
+ for (const QSize &size : qAsConst(sizes)) {
// search for viewfinder resolution with the same aspect ratio
if (qFuzzyCompare(aspectRatio, (static_cast<qreal>(size.width())/static_cast<qreal>(size.height())))) {
viewfinderResolution = size;