diff options
author | Lars Knoll <lars.knoll@digia.com> | 2014-11-21 09:17:01 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2014-12-11 08:40:41 +0100 |
commit | ddfe9defa803fdbfab10ab58b77df242cdb4cedd (patch) | |
tree | b13af2424e8ea466a9de9fece8f2fbb6415ce8b6 /tests/auto/qml/qqmlecmascript | |
parent | 254cf16ed4c6007a59a7cd5d64bb621430b3c01d (diff) |
Encapsulate accesses to the root context
Change-Id: I668cef1363a5c1a5c5b9a7e138f3bd0338712eea
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'tests/auto/qml/qqmlecmascript')
-rw-r--r-- | tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp index 54cb0e586a..07f59eb488 100644 --- a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp +++ b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp @@ -2300,7 +2300,7 @@ static inline bool evaluate_error(QV8Engine *engine, const QV4::ValueRef o, cons QString functionSource = QLatin1String("(function(object) { return ") + QLatin1String(source) + QLatin1String(" })"); - QV4::Script program(QV8Engine::getV4(engine)->rootContext, functionSource); + QV4::Script program(QV8Engine::getV4(engine)->rootContext(), functionSource); program.inheritContext = true; QV4::Scope scope(QV8Engine::getV4(engine)); @@ -2327,7 +2327,7 @@ static inline bool evaluate_value(QV8Engine *engine, const QV4::ValueRef o, QString functionSource = QLatin1String("(function(object) { return ") + QLatin1String(source) + QLatin1String(" })"); - QV4::Script program(QV8Engine::getV4(engine)->rootContext, functionSource); + QV4::Script program(QV8Engine::getV4(engine)->rootContext(), functionSource); program.inheritContext = true; QV4::Scope scope(QV8Engine::getV4(engine)); @@ -2360,7 +2360,7 @@ static inline QV4::ReturnedValue evaluate(QV8Engine *engine, const QV4::ValueRef QV4::Scope scope(QV8Engine::getV4(engine)); - QV4::Script program(scope.engine->rootContext, functionSource); + QV4::Script program(scope.engine->rootContext(), functionSource); program.inheritContext = true; QV4::Scoped<QV4::FunctionObject> function(scope, program.run()); |