summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlbasicscript.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-08-04 03:18:37 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-08-04 03:34:52 (GMT)
commit588093b3e12dd5039bcc4ee545d9d9112d25394f (patch)
tree2f401dd36f44004fb06cead7846965dad3b5738e /src/declarative/qml/qmlbasicscript.cpp
parentdbda9ae7996d090cda296074fc02842f1dd2e0f7 (diff)
downloadQt-588093b3e12dd5039bcc4ee545d9d9112d25394f.zip
Qt-588093b3e12dd5039bcc4ee545d9d9112d25394f.tar.gz
Qt-588093b3e12dd5039bcc4ee545d9d9112d25394f.tar.bz2
Improve performance by separating id and context properties
Diffstat (limited to 'src/declarative/qml/qmlbasicscript.cpp')
-rw-r--r--src/declarative/qml/qmlbasicscript.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/qml/qmlbasicscript.cpp b/src/declarative/qml/qmlbasicscript.cpp
index b940d61..ca137c7 100644
--- a/src/declarative/qml/qmlbasicscript.cpp
+++ b/src/declarative/qml/qmlbasicscript.cpp
@@ -668,7 +668,7 @@ QVariant QmlBasicScript::run(QmlContext *context, void *voidCache, CacheState *c
switch(instr.type) {
case ScriptInstruction::LoadIdObject:
{
- stack.push(contextPrivate->propertyValues.at(instr.fetch.idx));
+ stack.push(QVariant::fromValue(contextPrivate->idValues[instr.fetch.idx].data()));
enginePrivate->capturedProperties <<
QmlEnginePrivate::CapturedProperty(context, -1, contextPrivate->notifyIndex + instr.fetch.idx);
state = Reset;