aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmljavascriptexpression_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@theqtcompany.com>2015-05-03 19:11:53 +0200
committerSimon Hausmann <simon.hausmann@theqtcompany.com>2015-06-18 05:48:10 +0000
commit17a336714dcc16e786a619d68d2901e0e93e86a4 (patch)
tree1c9216cd7fcb98781a87a877d8af47d813ab617a /src/qml/qml/qqmljavascriptexpression_p.h
parent7be7651e9d6699981ed13643eff0aa43ca1bed4e (diff)
Don't store the qmlscope object in a persistent
This doesn't make sense, as the persistent is never being used. So either the scope object is being used from somewhere else in which case it'll be referenced and marked from there, or it's not being used in which case, we might as well collect it. Change-Id: I56cb45282cbc795d4c59314c10491dedb9b7d478 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/qml/qqmljavascriptexpression_p.h')
-rw-r--r--src/qml/qml/qqmljavascriptexpression_p.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/qml/qml/qqmljavascriptexpression_p.h b/src/qml/qml/qqmljavascriptexpression_p.h
index f846b6570f..c6028d86dc 100644
--- a/src/qml/qml/qqmljavascriptexpression_p.h
+++ b/src/qml/qml/qqmljavascriptexpression_p.h
@@ -137,13 +137,11 @@ public:
static QV4::ReturnedValue evalFunction(QQmlContextData *ctxt, QObject *scope,
const QString &code, const QString &filename,
- quint16 line,
- QV4::PersistentValue *qmlscope = 0);
+ quint16 line);
// doesn't require rewriting the expression
static QV4::ReturnedValue qmlBinding(QQmlContextData *ctxt, QObject *scope,
const QString &code,
- const QString &filename, quint16 line,
- QV4::PersistentValue *qmlscope = 0);
+ const QString &filename, quint16 line);
private:
friend class QQmlContextData;