diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-03-01 13:13:26 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-03-02 09:06:52 +0000 |
commit | 7ddb976ab22c5b75d3180e19ed4e27ff322a99af (patch) | |
tree | 061a91fad17709d13ba2719e97e4b38ee63cde95 /src | |
parent | c35f78e4e4871345fdb586c36a0e24839a243ae6 (diff) |
ObjGeometryLoader::doLoad(): Fix fall through warnings
Fix:
objgeometryloader.cpp:161:49: warning: this statement may fall through [-Wimplicit-fallthrough=]
objgeometryloader.cpp:163:51: warning: this statement may fall through [-Wimplicit-fallthrough=]
Amends 4338a85487788bb553cef0eaa5e5a3f929934eea.
Change-Id: I4a77a6436eef0d91ccc69decdfe4365dfdc5df22
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/geometryloaders/default/objgeometryloader.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/geometryloaders/default/objgeometryloader.cpp b/src/plugins/geometryloaders/default/objgeometryloader.cpp index b144ceacd..54b7bc710 100644 --- a/src/plugins/geometryloaders/default/objgeometryloader.cpp +++ b/src/plugins/geometryloaders/default/objgeometryloader.cpp @@ -159,8 +159,10 @@ bool ObjGeometryLoader::doLoad(QIODevice *ioDev, const QString &subMesh) switch (indices.size()) { case 3: faceIndices.normalIndex = indices.intAt(2) - 1 - normalsOffset; // fall through + Q_FALLTHROUGH(); case 2: faceIndices.texCoordIndex = indices.intAt(1) - 1 - texCoordsOffset; // fall through + Q_FALLTHROUGH(); case 1: faceIndices.positionIndex = indices.intAt(0) - 1 - positionsOffset; break; |