diff options
Diffstat (limited to 'src/plugins/qnx/camera/bbcamerasession.cpp')
-rw-r--r-- | src/plugins/qnx/camera/bbcamerasession.cpp | 4 |
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; |