summaryrefslogtreecommitdiffstats
path: root/src/scxml/qscxmltabledata.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2016-08-30 15:03:21 +0200
committerSimon Hausmann <simon.hausmann@qt.io>2016-08-31 04:40:32 +0000
commit90b000155eea734a4892eec01e24cd69b5efdd16 (patch)
tree105e05a1a72702ea684843d67d461eea98212ccd /src/scxml/qscxmltabledata.cpp
parent1db438735f7a3033b8a3ce6ef2b36aee1d725197 (diff)
Remove remaining dynamic castsv5.8.0-alpha1
We want to be able to compile without rtti, and we don't really need the dynamic casts anyway. Change-Id: I9b1cc4fd1974452198dac293ece56f10236a4ffa Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'src/scxml/qscxmltabledata.cpp')
-rw-r--r--src/scxml/qscxmltabledata.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scxml/qscxmltabledata.cpp b/src/scxml/qscxmltabledata.cpp
index b3f9f1c..952bc16 100644
--- a/src/scxml/qscxmltabledata.cpp
+++ b/src/scxml/qscxmltabledata.cpp
@@ -193,7 +193,7 @@ protected: // visitor
QVector<DocumentModel::AbstractState *> childStates;
foreach (DocumentModel::StateOrTransition *sot, node->children) {
- if (DocumentModel::AbstractState *s = dynamic_cast<DocumentModel::AbstractState *>(sot)) {
+ if (DocumentModel::AbstractState *s = sot->asAbstractState()) {
childStates.append(s);
}
}
@@ -289,7 +289,7 @@ protected: // visitor
QVector<DocumentModel::AbstractState *> childStates;
foreach (DocumentModel::StateOrTransition *sot, state->children) {
- if (auto s = dynamic_cast<DocumentModel::AbstractState *>(sot)) {
+ if (auto s = sot->asAbstractState()) {
childStates.append(s);
}
}