summaryrefslogtreecommitdiffstats
path: root/src/scxml/qscxmltabledata.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2016-09-20 16:41:47 +0200
committerUlf Hermann <ulf.hermann@qt.io>2016-10-14 09:00:52 +0000
commit952bfb59b27a10bad732055d17cd074463f6b770 (patch)
tree6ad46b5b3d2631fb072bcf5ec30641593a139240 /src/scxml/qscxmltabledata.cpp
parent8d6c4dc6ed1668072aa810d13f8528301ca3ba07 (diff)
Rename QScxmlExecutableContent::Instructions and make byte code const
"Instructions" was quite ambiguous as there are instruction IDs and instruction structs. It actually meant an array of IDs. The execution engine should never modify its byte code, so while we're at it, we can also make all relevant occurrences of InstructionID* const. Change-Id: I9370b07a5a9cdb8c7b41b23648fc1b8b2dea7dcd 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 95b1366..ced6c16 100644
--- a/src/scxml/qscxmltabledata.cpp
+++ b/src/scxml/qscxmltabledata.cpp
@@ -985,9 +985,9 @@ QString GeneratedTableData::string(StringId id) const
return id == NoString ? QString() : theStrings.at(id);
}
-Instructions GeneratedTableData::instructions() const
+InstructionId *GeneratedTableData::instructions() const
{
- return const_cast<Instructions>(theInstructions.data());
+ return const_cast<InstructionId *>(theInstructions.data());
}
EvaluatorInfo GeneratedTableData::evaluatorInfo(EvaluatorId evaluatorId) const