diff options
author | Lars Knoll <lars.knoll@digia.com> | 2014-11-21 13:18:23 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2014-12-11 08:40:48 +0100 |
commit | 4322c8d7686c7cbbdf348146d32d705007b21d56 (patch) | |
tree | c60d6568f3b47786b24c0d74eb6e61b7cac18add /src/qml/jsruntime/qv4objectproto.cpp | |
parent | ddfe9defa803fdbfab10ab58b77df242cdb4cedd (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/qv4objectproto.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4objectproto.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4objectproto.cpp b/src/qml/jsruntime/qv4objectproto.cpp index 962d9bbee5..090bc32c93 100644 --- a/src/qml/jsruntime/qv4objectproto.cpp +++ b/src/qml/jsruntime/qv4objectproto.cpp @@ -489,7 +489,7 @@ ReturnedValue ObjectPrototype::method_defineGetter(CallContext *ctx) if (!o) { if (!ctx->d()->callData->thisObject.isUndefined()) return Encode::undefined(); - o = ctx->d()->engine->globalObject; + o = ctx->d()->engine->globalObject(); } Property pd; @@ -517,7 +517,7 @@ ReturnedValue ObjectPrototype::method_defineSetter(CallContext *ctx) if (!o) { if (!ctx->d()->callData->thisObject.isUndefined()) return Encode::undefined(); - o = ctx->d()->engine->globalObject; + o = ctx->d()->engine->globalObject(); } Property pd; |