aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4codegen.cpp
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@qt.io>2017-06-29 12:48:47 +0200
committerLars Knoll <lars.knoll@qt.io>2017-06-29 10:50:40 +0000
commit05557e7fbd123f20a3da845545d5b0228fc37060 (patch)
treec059d92fd753a68b306965f853ca8be045e2b5b5 /src/qml/compiler/qv4codegen.cpp
parent2ac3eaee7f613201690f7b73a234363372f13247 (diff)
Mark QML id objects as read-only
Change-Id: I39510d59ee6f05a6e45718fd33a1815fb7c46d81 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4codegen.cpp')
-rw-r--r--src/qml/compiler/qv4codegen.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qml/compiler/qv4codegen.cpp b/src/qml/compiler/qv4codegen.cpp
index 394568fbb8..d3129c983d 100644
--- a/src/qml/compiler/qv4codegen.cpp
+++ b/src/qml/compiler/qv4codegen.cpp
@@ -2279,7 +2279,7 @@ bool Codegen::visit(RegExpLiteral *ast)
return false;
_expr.result = Reference::fromTemp(this);
- _expr.result.isLiteral = true;
+ _expr.result.isReadonly = true;
Instruction::LoadRegExp instr;
instr.result = _expr.result.asLValue();
@@ -2294,7 +2294,7 @@ bool Codegen::visit(StringLiteral *ast)
return false;
_expr.result = Reference::fromTemp(this);
- _expr.result.isLiteral = true;
+ _expr.result.isReadonly = true;
Instruction::LoadRuntimeString instr;
instr.result = _expr.result.asLValue();
@@ -3308,7 +3308,7 @@ Codegen::Reference &Codegen::Reference::operator =(const Reference &other)
needsWriteBack = false;
isArgOrEval = other.isArgOrEval;
codegen = other.codegen;
- isLiteral = other.isLiteral;
+ isReadonly = other.isReadonly;
global = other.global;
return *this;
}