summaryrefslogtreecommitdiffstats
path: root/src/plugins/sceneparsers/gltfexport/gltfexporter.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2017-12-28 12:06:43 +0100
committerMarc Mutz <marc.mutz@kdab.com>2017-12-28 12:06:43 +0100
commit4ccdf85931d97188c68b54b09a4e2ffbeff6b2a2 (patch)
tree6627e89b372d79811553ba630c4d0c88ec3c3eb6 /src/plugins/sceneparsers/gltfexport/gltfexporter.cpp
parentfd748abaab7c1369613be2754e614041a0339502 (diff)
GLTFExporter: remove duplicate definition
'matIt' is defined as a Java-style iterator outside the loop, as well as a type-inferred STL-iterator inside. Drop the hidden declaration. Change-Id: I83ab93a5b2b5f611a820c1d47f17ec9371d65f50 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/plugins/sceneparsers/gltfexport/gltfexporter.cpp')
-rw-r--r--src/plugins/sceneparsers/gltfexport/gltfexporter.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/plugins/sceneparsers/gltfexport/gltfexporter.cpp b/src/plugins/sceneparsers/gltfexport/gltfexporter.cpp
index 40247f911..b4b87ef76 100644
--- a/src/plugins/sceneparsers/gltfexport/gltfexporter.cpp
+++ b/src/plugins/sceneparsers/gltfexport/gltfexporter.cpp
@@ -1680,7 +1680,6 @@ void GLTFExporter::exportMaterials(QJsonObject &materials)
{
QHash<QString, bool> imageHasAlpha;
- QHashIterator<QMaterial *, MaterialInfo> matIt(m_materialInfo);
for (auto matIt = m_materialInfo.constBegin(); matIt != m_materialInfo.constEnd(); ++matIt) {
const QMaterial *material = matIt.key();
const MaterialInfo &matInfo = matIt.value();