summaryrefslogtreecommitdiffstats
path: root/src/declarative
diff options
context:
space:
mode:
authorJoona Petrell <joona.t.petrell@nokia.com>2010-08-05 04:10:43 (GMT)
committerJoona Petrell <joona.t.petrell@nokia.com>2010-08-05 04:41:17 (GMT)
commit563b5891e2f918f901ffefe29872dfac1b9a60e7 (patch)
tree85cb7ae57d986208883525593c7cf4c6767373ad /src/declarative
parent89e723153b15af5d3acbeb859d4f35bf52f8e250 (diff)
downloadQt-563b5891e2f918f901ffefe29872dfac1b9a60e7.zip
Qt-563b5891e2f918f901ffefe29872dfac1b9a60e7.tar.gz
Qt-563b5891e2f918f901ffefe29872dfac1b9a60e7.tar.bz2
Re-enable script program caching on Symbian (used to be disabled due to crash problems that no longer occur).
Task-number: QTBUG-12599 Reviewed-by: Martin Jones
Diffstat (limited to 'src/declarative')
-rw-r--r--src/declarative/qml/qdeclarativeexpression.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/declarative/qml/qdeclarativeexpression.cpp b/src/declarative/qml/qdeclarativeexpression.cpp
index 585fb69..6fc4df0 100644
--- a/src/declarative/qml/qdeclarativeexpression.cpp
+++ b/src/declarative/qml/qdeclarativeexpression.cpp
@@ -143,16 +143,12 @@ void QDeclarativeExpressionPrivate::init(QDeclarativeContextData *ctxt, void *ex
} else {
-#if !defined(Q_OS_SYMBIAN) //XXX Why doesn't this work?
if (!dd->cachedPrograms.at(progIdx)) {
dd->cachedPrograms[progIdx] = new QScriptProgram(expression, url, line);
}
expressionFunction = evalInObjectScope(ctxt, me, *dd->cachedPrograms.at(progIdx),
&expressionContext);
-#else
- expressionFunction = evalInObjectScope(ctxt, me, expression, &expressionContext);
-#endif
expressionFunctionMode = ExplicitContext;
expressionFunctionValid = true;