summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2019-05-27 13:06:57 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2019-05-27 13:08:23 +0200
commita368b5fdf4d33361e03a2f05b6f159566dd06e9d (patch)
treef35fe2ac88d8da34dd0aebea440cc7c38ba11415
parent80a9f4dfd078c4df1bc2c7fa279d637debfd672a (diff)
Fix warnings about fall through
Use Q_FALLTHROUGH, fixing: ../../src/scxml/qscxmlcompiler.cpp:1591:9: warning: this statement may fall through [-Wimplicit-fallthrough=] ../../src/scxml/qscxmlcompiler.cpp:1610:9: warning: this statement may fall through [-Wimplicit-fallthrough=] Change-Id: I39fb346f1c5fa3e328ee82aa14675557034439c9 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
-rw-r--r--src/scxml/qscxmlcompiler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scxml/qscxmlcompiler.cpp b/src/scxml/qscxmlcompiler.cpp
index e2e9b4c..36967d1 100644
--- a/src/scxml/qscxmlcompiler.cpp
+++ b/src/scxml/qscxmlcompiler.cpp
@@ -1589,7 +1589,7 @@ bool QScxmlCompilerPrivate::preReadElementOnEntry()
current().instructionContainer = m_doc->newSequence(&s->onEntry);
break;
}
- // intentional fall-through
+ Q_FALLTHROUGH();
default:
addError(QStringLiteral("unexpected container state for onentry"));
break;
@@ -1608,7 +1608,7 @@ bool QScxmlCompilerPrivate::preReadElementOnExit()
current().instructionContainer = m_doc->newSequence(&s->onExit);
break;
}
- // intentional fall-through
+ Q_FALLTHROUGH();
default:
addError(QStringLiteral("unexpected container state for onexit"));
break;