aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4context.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2014-11-21 13:18:23 +0100
committerSimon Hausmann <simon.hausmann@digia.com>2014-12-11 08:40:48 +0100
commit4322c8d7686c7cbbdf348146d32d705007b21d56 (patch)
treec60d6568f3b47786b24c0d74eb6e61b7cac18add /src/qml/jsruntime/qv4context.cpp
parentddfe9defa803fdbfab10ab58b77df242cdb4cedd (diff)
Better encapsulate access to the global object
Change-Id: I8a76112d821cb3fc172ba0d16ee8410d39b4422a Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4context.cpp')
-rw-r--r--src/qml/jsruntime/qv4context.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qml/jsruntime/qv4context.cpp b/src/qml/jsruntime/qv4context.cpp
index 957c099c3c..8b510fd1fc 100644
--- a/src/qml/jsruntime/qv4context.cpp
+++ b/src/qml/jsruntime/qv4context.cpp
@@ -106,7 +106,7 @@ void ExecutionContext::createMutableBinding(String *name, bool deletable)
Scope scope(this);
// find the right context to create the binding on
- ScopedObject activation(scope, d()->engine->globalObject);
+ ScopedObject activation(scope, d()->engine->globalObject());
Scoped<ExecutionContext> ctx(scope, this);
while (ctx) {
if (ctx->d()->type >= Heap::ExecutionContext::Type_CallContext) {
@@ -131,7 +131,7 @@ void ExecutionContext::createMutableBinding(String *name, bool deletable)
Heap::GlobalContext::GlobalContext(ExecutionEngine *eng)
: Heap::ExecutionContext(eng, Heap::ExecutionContext::Type_GlobalContext)
{
- global = eng->globalObject->d();
+ global = eng->globalObject()->d();
}
Heap::WithContext::WithContext(ExecutionEngine *engine, QV4::Object *with)
@@ -334,7 +334,7 @@ void ExecutionContext::setProperty(String *name, const ValueRef value)
engine()->throwReferenceError(n);
return;
}
- d()->engine->globalObject->put(name, value);
+ d()->engine->globalObject()->put(name, value);
}
ReturnedValue ExecutionContext::getProperty(String *name)