summaryrefslogtreecommitdiffstats
path: root/src/scxml/qscxmlparser_p.h
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/qscxmlparser_p.h
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/qscxmlparser_p.h')
-rw-r--r--src/scxml/qscxmlparser_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scxml/qscxmlparser_p.h b/src/scxml/qscxmlparser_p.h
index 1d01447..05399fc 100644
--- a/src/scxml/qscxmlparser_p.h
+++ b/src/scxml/qscxmlparser_p.h
@@ -98,6 +98,7 @@ struct Node {
virtual Transition *asTransition() { return Q_NULLPTR; }
virtual HistoryState *asHistoryState() { return Q_NULLPTR; }
virtual Scxml *asScxml() { return Q_NULLPTR; }
+ AbstractState *asAbstractState();
private:
Q_DISABLE_COPY(Node)
@@ -270,7 +271,6 @@ struct StateContainer
virtual AbstractState *asAbstractState() { return Q_NULLPTR; }
virtual State *asState() { return Q_NULLPTR; }
virtual Scxml *asScxml() { return Q_NULLPTR; }
- Node *asNode() { return dynamic_cast<Node *>(this); }
};
struct AbstractState: public StateContainer