diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-09-06 12:44:12 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-11 13:01:57 +0200 |
commit | f9fda643ab7aa1a66e4816382f0e66499818f42a (patch) | |
tree | 10d537491f648945632ac7181557c157c891e002 /tools | |
parent | a23158a41291055aa0f546869e4c9f8efb19c2dc (diff) |
Change signature of call/construct() to take a pointer to a CallData
Change-Id: I5467aadba083e4b01fb0a7170946695207033680
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 e4a03339e1..a49c7093cf 100644 --- a/tools/v4/main.cpp +++ b/tools/v4/main.cpp @@ -77,10 +77,10 @@ struct Print: FunctionObject name = scope->engine->newString("print"); } - static Value call(Managed *, const CallData &d) + static Value call(Managed *, CallData *callData) { - for (int i = 0; i < d.argc; ++i) { - QString s = d.args[i].toQString(); + for (int i = 0; i < callData->argc; ++i) { + QString s = callData->args[i].toQString(); if (i) std::cout << ' '; std::cout << qPrintable(s); @@ -102,7 +102,7 @@ struct GC: public FunctionObject vtbl = &static_vtbl; name = scope->engine->newString("gc"); } - static Value call(Managed *m, const CallData &) + static Value call(Managed *m, CallData *) { m->engine()->memoryManager->runGC(); return Value::undefinedValue(); |