diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2016-09-20 16:41:47 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2016-10-14 09:00:52 +0000 |
commit | 952bfb59b27a10bad732055d17cd074463f6b770 (patch) | |
tree | 6ad46b5b3d2631fb072bcf5ec30641593a139240 /tools | |
parent | 8d6c4dc6ed1668072aa810d13f8528301ca3ba07 (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 'tools')
-rw-r--r-- | tools/qscxmlc/data.t | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/qscxmlc/data.t b/tools/qscxmlc/data.t index afb5a64..da553f4 100644 --- a/tools/qscxmlc/data.t +++ b/tools/qscxmlc/data.t @@ -14,7 +14,7 @@ struct ${classname}::Data: private QScxmlTableData { QScxmlExecutableContent::ContainerId initialSetup() const Q_DECL_OVERRIDE Q_DECL_FINAL { return ${initialSetup}; } - QScxmlExecutableContent::Instructions instructions() const Q_DECL_OVERRIDE Q_DECL_FINAL + QScxmlExecutableContent::InstructionId *instructions() const Q_DECL_OVERRIDE Q_DECL_FINAL { return theInstructions; } QScxmlExecutableContent::StringId *dataNames(int *count) const Q_DECL_OVERRIDE Q_DECL_FINAL |