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>
QSGVivanteVideoMaterial::~QSGVivanteVideoMaterial()
{
- for (GLuint id : mBitsToTextureMap.values()) {
+ Q_FOREACH (GLuint id, mBitsToTextureMap.values()) {
#ifdef QT_VIVANTE_VIDEO_DEBUG
qDebug() << "delete texture: " << id;
#endif
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