diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-09-11 13:55:01 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-18 13:13:18 +0200 |
commit | 1a2a83f80ba4ecc28eba72af57c81bd43a45946c (patch) | |
tree | c2e4eb4d9bb57873ca340f6bbbf2342b36c91452 /tools | |
parent | 826550af450b39f47a3c00ec316acf1e317f12c6 (diff) |
Use a ReturnedValue for Managed::call()
Change-Id: Ief2d75e9789dd367c603d90dc0fe5316a0d055e3
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/v4/main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/v4/main.cpp b/tools/v4/main.cpp index c6fa1c986f..2ae21914c4 100644 --- a/tools/v4/main.cpp +++ b/tools/v4/main.cpp @@ -77,7 +77,7 @@ struct Print: FunctionObject name = scope->engine->newString("print"); } - static Value call(Managed *, CallData *callData) + static ReturnedValue call(Managed *, CallData *callData) { for (int i = 0; i < callData->argc; ++i) { QString s = callData->args[i].toQStringNoThrow(); @@ -86,7 +86,7 @@ struct Print: FunctionObject std::cout << qPrintable(s); } std::cout << std::endl; - return Value::undefinedValue(); + return Value::undefinedValue().asReturnedValue(); } static const ManagedVTable static_vtbl; @@ -102,10 +102,10 @@ struct GC: public FunctionObject vtbl = &static_vtbl; name = scope->engine->newString("gc"); } - static Value call(Managed *m, CallData *) + static ReturnedValue call(Managed *m, CallData *) { m->engine()->memoryManager->runGC(); - return Value::undefinedValue(); + return Value::undefinedValue().asReturnedValue(); } static const ManagedVTable static_vtbl; |