diff options
author | Lars Knoll <lars.knoll@theqtcompany.com> | 2015-01-15 15:01:06 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@digia.com> | 2015-01-23 08:07:35 +0100 |
commit | 13cf87fa93b584091a51d775953074db9df1b453 (patch) | |
tree | def0d8107e1a152faff71b31902eaade14531e12 /src/qml/qml/v8/qv8engine_p.h | |
parent | 002a5d4303b3b182ae4abc4a752c49787c1c2821 (diff) |
Remove all remaining usages of ValueRef
Change-Id: Icd76d3d03fac2e57530e55f8ec15b97109dcdcbc
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/v8/qv8engine_p.h')
-rw-r--r-- | src/qml/qml/v8/qv8engine_p.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qml/qml/v8/qv8engine_p.h b/src/qml/qml/v8/qv8engine_p.h index 25f599ca72..298b97d1e9 100644 --- a/src/qml/qml/v8/qv8engine_p.h +++ b/src/qml/qml/v8/qv8engine_p.h @@ -121,7 +121,7 @@ public: QV4::ReturnedValue operator[](int idx) { return (idx < callData->argc ? callData->args[idx].asReturnedValue() : QV4::Encode::undefined()); } QQmlContextData *context() { return ctx; } QV4::ReturnedValue qmlGlobal() { return callData->thisObject.asReturnedValue(); } - void setReturnValue(QV4::ReturnedValue rv) { retVal = rv; } + void setReturnValue(QV4::ReturnedValue rv) { *retVal = rv; } QV4::ExecutionEngine *v4engine() const { return e; } private: friend struct QV4::QObjectMethod; @@ -129,7 +129,7 @@ private: QQmlV4Function(const QQmlV4Function &); QQmlV4Function &operator=(const QQmlV4Function &); - QQmlV4Function(QV4::CallData *callData, QV4::ValueRef retVal, + QQmlV4Function(QV4::CallData *callData, QV4::Value *retVal, const QV4::Value &global, QQmlContextData *c, QV4::ExecutionEngine *e) : callData(callData), retVal(retVal), ctx(c), e(e) { @@ -137,7 +137,7 @@ private: } QV4::CallData *callData; - QV4::ValueRef retVal; + QV4::Value *retVal; QQmlContextData *ctx; QV4::ExecutionEngine *e; }; @@ -146,7 +146,7 @@ class Q_QML_PRIVATE_EXPORT QQmlV4Handle { public: QQmlV4Handle() : d(QV4::Encode::undefined()) {} - explicit QQmlV4Handle(QV4::ValueRef v) : d(v.asReturnedValue()) {} + explicit QQmlV4Handle(const QV4::Value &v) : d(v.asReturnedValue()) {} explicit QQmlV4Handle(QV4::ReturnedValue v) : d(v) {} operator QV4::ReturnedValue() const { return d; } |