aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-06-22 10:02:06 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2013-06-22 22:28:33 +0200
commit1e437db3e241ec7e3c0dc290193397409db0588e (patch)
treea73c5e6e63fb1f7f7824db11810d1cdb97751f8e /tools
parent7c7581f1d03668df7b77e0076d128fd6a122d96b (diff)
Remove the context argument from Managed::call
Change-Id: I0895f9a94af47c8aab1dc93579921737e9516f7d Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/v4/main.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/v4/main.cpp b/tools/v4/main.cpp
index bc95178397..c4af264e90 100644
--- a/tools/v4/main.cpp
+++ b/tools/v4/main.cpp
@@ -82,13 +82,13 @@ struct Print: FunctionObject
name = scope->engine->newString("print");
}
- static Value call(Managed *, ExecutionContext *ctx, const Value &, Value *args, int argc)
+ static Value call(Managed *, const Value &, Value *args, int argc)
{
for (int i = 0; i < argc; ++i) {
- String *s = args[i].toString(ctx);
+ QString s = args[i].toQString();
if (i)
std::cout << ' ';
- std::cout << qPrintable(s->toQString());
+ std::cout << qPrintable(s);
}
std::cout << std::endl;
return Value::undefinedValue();
@@ -107,9 +107,9 @@ struct GC: public FunctionObject
vtbl = &static_vtbl;
name = scope->engine->newString("gc");
}
- static Value call(Managed *, ExecutionContext *ctx, const Value &, Value *, int)
+ static Value call(Managed *m, const Value &, Value *, int)
{
- ctx->engine->memoryManager->runGC();
+ m->engine()->memoryManager->runGC();
return Value::undefinedValue();
}