Remove C++11 code in iMX6 video node plugin.
authorYoann Lopes <yoann.lopes@digia.com>
Mon, 19 May 2014 12:09:23 +0000 (14:09 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 30 May 2014 12:46:42 +0000 (14:46 +0200)
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>
src/plugins/videonode/imx6/qsgvivantevideomaterial.cpp

index 44f9f4d..0f3dd59 100644 (file)
@@ -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