summaryrefslogtreecommitdiff
path: root/src/plugins/winrt/qwinrtcameracontrol.cpp
diff options
context:
space:
mode:
authorAnton Kudryavtsev <a.kudryavtsev@netris.ru>2016-01-15 11:57:59 +0300
committerYoann Lopes <yoann.lopes@theqtcompany.com>2016-01-15 13:56:07 +0000
commit50a8f44fa47ec00769b55058c66c94390735cf57 (patch)
tree2c12a6ddde1ab3ca4786af6c5e779505f82e697f /src/plugins/winrt/qwinrtcameracontrol.cpp
parent942ff8229151820eb2a9cb17d7c5ee237019a47d (diff)
downloadqtmultimedia-50a8f44fa47ec00769b55058c66c94390735cf57.tar.gz
WinRT, WindowsAudio plugins: replace foreach with range-based for
Change-Id: I37ab3239aeaa01ecd033bfe7d9c8885511844d4d Reviewed-by: Yoann Lopes <yoann.lopes@theqtcompany.com>
Diffstat (limited to 'src/plugins/winrt/qwinrtcameracontrol.cpp')
-rw-r--r--src/plugins/winrt/qwinrtcameracontrol.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/winrt/qwinrtcameracontrol.cpp b/src/plugins/winrt/qwinrtcameracontrol.cpp
index 19b718cdd..d209d9394 100644
--- a/src/plugins/winrt/qwinrtcameracontrol.cpp
+++ b/src/plugins/winrt/qwinrtcameracontrol.cpp
@@ -936,7 +936,7 @@ HRESULT QWinRTCameraControl::initialize()
// Set preview resolution.
QVector<QSize> filtered;
const float captureAspectRatio = float(captureResolution.width()) / captureResolution.height();
- foreach (const QSize &resolution, previewResolutions) {
+ for (const QSize &resolution : qAsConst(previewResolutions)) {
const float aspectRatio = float(resolution.width()) / resolution.height();
if (qAbs(aspectRatio - captureAspectRatio) <= ASPECTRATIO_EPSILON)
filtered.append(resolution);