diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-09-09 22:34:47 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-12 21:52:35 +0200 |
commit | c4b984d099b9653bfa0e282daed0bf466123c341 (patch) | |
tree | e477a4ae81a5cb2b6ea28ff6c9f38704b2b282e8 /src/qml/jsruntime/qv4runtime.cpp | |
parent | 22a5c163d3f74efe8c15c61de6f7334810bc1bc2 (diff) |
Fix __qmljs_init_closure to use ReturnedValue
Change-Id: I777a63db32857a6a326839e3fcdb99657dc80e7f
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4runtime.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4runtime.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qml/jsruntime/qv4runtime.cpp b/src/qml/jsruntime/qv4runtime.cpp index e132172411..fb39063fc6 100644 --- a/src/qml/jsruntime/qv4runtime.cpp +++ b/src/qml/jsruntime/qv4runtime.cpp @@ -243,11 +243,11 @@ void __qmljs_numberToString(QString *result, double num, int radix) result->prepend(QLatin1Char('-')); } -void __qmljs_init_closure(ExecutionContext *ctx, ValueRef result, int functionId) +ReturnedValue __qmljs_init_closure(ExecutionContext *ctx, int functionId) { QV4::Function *clos = ctx->compilationUnit->runtimeFunctions[functionId]; - assert(clos); - *result = Value::fromObject(FunctionObject::creatScriptFunction(ctx, clos)); + Q_ASSERT(clos); + return Value::fromObject(FunctionObject::creatScriptFunction(ctx, clos)); } ReturnedValue __qmljs_delete_subscript(ExecutionContext *ctx, const ValueRef base, const ValueRef index) |