diff options
author | Lars Knoll <lars.knoll@digia.com> | 2012-11-19 00:00:50 +0100 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@digia.com> | 2012-11-20 09:40:14 +0100 |
commit | 79753b8fe5f3df79a9a4208056ac05281b5f97d0 (patch) | |
tree | 04c083834b8a8346d2ac51881dee981f538bb317 /qmljs_engine.cpp | |
parent | 95e8de83dccc12b58e065ac7f0c54de25f580bf2 (diff) |
return results directly instead of using the context
The result variable in the context is not really
required, as we can return results directly in the
return value register.
Change-Id: I12554c228500aa24625ef82e31fd7f72989a71bb
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Diffstat (limited to 'qmljs_engine.cpp')
-rw-r--r-- | qmljs_engine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qmljs_engine.cpp b/qmljs_engine.cpp index 40cf7f3294..31ed260bee 100644 --- a/qmljs_engine.cpp +++ b/qmljs_engine.cpp @@ -181,7 +181,7 @@ String *ExecutionEngine::identifier(const QString &s) return id; } -FunctionObject *ExecutionEngine::newNativeFunction(ExecutionContext *scope, void (*code)(ExecutionContext *)) +FunctionObject *ExecutionEngine::newNativeFunction(ExecutionContext *scope, Value (*code)(ExecutionContext *)) { NativeFunction *f = new NativeFunction(scope, code); f->prototype = scope->engine->functionPrototype; |