summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2016-05-07 00:10:17 +0200
committerSean Harmer <sean.harmer@kdab.com>2016-05-08 08:08:16 +0000
commitd3f9f251d2be89a5a2a6b0e97233c2a6fd72938b (patch)
tree69e06a39e738894e66951f006e41c5cc6355ccd4 /tools
parent675669d616fa64b47e4677c662afe2c119a8b7a2 (diff)
qgltf: fix GCC 6 warning about misleading indention
It's even a true positive. Braces were missing. Change-Id: Ie807c46659ad4085751bc78b86408ce1001e1daf Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com> Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/qgltf/qgltf.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/qgltf/qgltf.cpp b/tools/qgltf/qgltf.cpp
index 3d4c1a420..f879e421f 100644
--- a/tools/qgltf/qgltf.cpp
+++ b/tools/qgltf/qgltf.cpp
@@ -1752,9 +1752,10 @@ static inline void promoteColorsToRGBA(QJsonObject *obj)
const QString key = it.key();
if (key == QStringLiteral("ambient")
|| key == QStringLiteral("diffuse")
- || key == QStringLiteral("specular"))
+ || key == QStringLiteral("specular")) {
arr.append(1);
*it = arr;
+ }
}
++it;
}