summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoann Lopes <yoann.lopes@digia.com>2014-05-19 14:09:23 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-05-30 14:46:42 +0200
commit69598e22f36b5e65cc7c979d1aee002ac564da5a (patch)
treea3ac596d758d64cf37ab2862d3b0fd5b302c5fc4
parent92096afdb496eaf5c4458155f7b1740a0dbb68bf (diff)
downloadqtmultimedia-69598e22f36b5e65cc7c979d1aee002ac564da5a.tar.gz
Remove C++11 code in iMX6 video node plugin.
Use Q_FOREACH instead of C++11 range-based For loops. Task-number: QTBUG-38900 Change-Id: I2b9f8444f2ac3ae71811112244c687cab79753c9 Reviewed-by: Thomas Senyk <thomas.senyk@pelagicore.com> Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
-rw-r--r--src/plugins/videonode/imx6/qsgvivantevideomaterial.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/videonode/imx6/qsgvivantevideomaterial.cpp b/src/plugins/videonode/imx6/qsgvivantevideomaterial.cpp
index 44f9f4d12..0f3dd59f8 100644
--- a/src/plugins/videonode/imx6/qsgvivantevideomaterial.cpp
+++ b/src/plugins/videonode/imx6/qsgvivantevideomaterial.cpp
@@ -70,7 +70,7 @@ QSGVivanteVideoMaterial::QSGVivanteVideoMaterial() :
QSGVivanteVideoMaterial::~QSGVivanteVideoMaterial()
{
- for (GLuint id : mBitsToTextureMap.values()) {
+ Q_FOREACH (GLuint id, mBitsToTextureMap.values()) {
#ifdef QT_VIVANTE_VIDEO_DEBUG
qDebug() << "delete texture: " << id;
#endif
@@ -154,7 +154,7 @@ GLuint QSGVivanteVideoMaterial::vivanteMapping(QVideoFrame vF)
mWidth = vF.width();
mHeight = vF.height();
mFormat = vF.pixelFormat();
- for (GLuint id : mBitsToTextureMap.values()) {
+ Q_FOREACH (GLuint id, mBitsToTextureMap.values()) {
#ifdef QT_VIVANTE_VIDEO_DEBUG
qDebug() << "delete texture: " << id;
#endif