From d3f9f251d2be89a5a2a6b0e97233c2a6fd72938b Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Sat, 7 May 2016 00:10:17 +0200 Subject: qgltf: fix GCC 6 warning about misleading indention It's even a true positive. Braces were missing. Change-Id: Ie807c46659ad4085751bc78b86408ce1001e1daf Reviewed-by: Frank Meerkoetter Reviewed-by: Sean Harmer --- tools/qgltf/qgltf.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools/qgltf') 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; } -- cgit v1.2.3