aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4bytecodegenerator_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2017-08-24 11:08:07 +0200
committerLars Knoll <lars.knoll@qt.io>2017-08-28 11:49:10 +0000
commit841095becd69422529a17aaccfd98a5495266b52 (patch)
tree1ae3aff703bac03d0320cf04bae372c3194c0adf /src/qml/compiler/qv4bytecodegenerator_p.h
parent69f3deff73759a006bafa7d5595cde01d0738dde (diff)
Unify instruction naming
Simplify the naming conventions, so that both the instruction struct and enum start with upper case letters. Change-Id: I60c5a95d729e0b68b5a40f7db0e8f90be5938032 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4bytecodegenerator_p.h')
-rw-r--r--src/qml/compiler/qv4bytecodegenerator_p.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/compiler/qv4bytecodegenerator_p.h b/src/qml/compiler/qv4bytecodegenerator_p.h
index 5ab8c880f3..a0255b2059 100644
--- a/src/qml/compiler/qv4bytecodegenerator_p.h
+++ b/src/qml/compiler/qv4bytecodegenerator_p.h
@@ -149,7 +149,7 @@ public:
void addInstruction(const InstrData<InstrT> &data)
{
Instr genericInstr;
- genericInstr.common.instructionType = static_cast<Instr::Type>(InstrT);
+ genericInstr.Common.instructionType = static_cast<Instr::Type>(InstrT);
InstrMeta<InstrT>::setDataNoCommon(genericInstr, data);
addInstructionHelper(InstrMeta<InstrT>::Size, genericInstr);
}
@@ -229,7 +229,7 @@ public:
Jump addJumpInstruction(const InstrData<InstrT> &data)
{
Instr genericInstr;
- genericInstr.common.instructionType = static_cast<Instr::Type>(InstrT);
+ genericInstr.Common.instructionType = static_cast<Instr::Type>(InstrT);
InstrMeta<InstrT>::setDataNoCommon(genericInstr, data);
return Jump(this, addInstructionHelper(InstrMeta<InstrT>::Size, genericInstr), offsetof(InstrData<InstrT>, offset));
}