summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlcompiler.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-05-26 06:56:18 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-05-26 06:56:18 (GMT)
commite52247f16e608134d1ff663774f930a00a431eb5 (patch)
treeba648f4a69a8252ac9701bc0e6758ae78b40d7d9 /src/declarative/qml/qmlcompiler.cpp
parent34163a31908ac00cf20ba3c8c885e767bdfbc0e0 (diff)
downloadQt-e52247f16e608134d1ff663774f930a00a431eb5.zip
Qt-e52247f16e608134d1ff663774f930a00a431eb5.tar.gz
Qt-e52247f16e608134d1ff663774f930a00a431eb5.tar.bz2
Remove AssignValueSource instruction
Diffstat (limited to 'src/declarative/qml/qmlcompiler.cpp')
-rw-r--r--src/declarative/qml/qmlcompiler.cpp18
1 files changed, 5 insertions, 13 deletions
diff --git a/src/declarative/qml/qmlcompiler.cpp b/src/declarative/qml/qmlcompiler.cpp
index 1022028..0712136 100644
--- a/src/declarative/qml/qmlcompiler.cpp
+++ b/src/declarative/qml/qmlcompiler.cpp
@@ -1188,19 +1188,11 @@ bool QmlCompiler::compilePropertyObjectAssignment(QmlParser::Property *prop,
} else if (isPropertyValue) {
COMPILE_CHECK(compileObject(v->object, ctxt));
- if (prop->index != -1) {
- QmlInstruction assign;
- assign.type = QmlInstruction::StoreValueSource;
- assign.line = v->object->location.start.line;
- assign.assignValueSource.property = prop->index;
- output->bytecode << assign;
- } else {
- QmlInstruction assign;
- assign.type = QmlInstruction::AssignValueSource;
- assign.line = v->object->location.start.line;
- assign.assignValueSource.property = output->indexForByteArray(prop->name);;
- output->bytecode << assign;
- }
+ QmlInstruction assign;
+ assign.type = QmlInstruction::StoreValueSource;
+ assign.line = v->object->location.start.line;
+ assign.assignValueSource.property = prop->index;
+ output->bytecode << assign;
v->type = Value::ValueSource;
} else {