aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-04-15 10:58:53 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2013-04-15 11:01:43 +0200
commitad04f0c856e09c9cc9df3ec1bbe8e4455508c1da (patch)
treeb73d067a02a94d87f9aefb5cc345df434f3e21d9 /src
parent3167bc7ed6e3e30e8716dfe8a2a1fa4355dd27d6 (diff)
Tiny optimisation
Change-Id: Iba4355e547c6f0d18bb31a977448bf433021c9f9 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/v4/qv4functionobject.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/v4/qv4functionobject.cpp b/src/v4/qv4functionobject.cpp
index a108865284..2380c1a994 100644
--- a/src/v4/qv4functionobject.cpp
+++ b/src/v4/qv4functionobject.cpp
@@ -364,7 +364,7 @@ Value ScriptFunction::construct(Managed *that, ExecutionContext *context, Value
quintptr stackSpace[stackContextSize/sizeof(quintptr)];
ExecutionContext *ctx = context->engine->newCallContext(stackSpace, f, Value::fromObject(obj), args, argc);
- Value result = Value::undefinedValue();
+ Value result;
try {
result = f->function->code(ctx, f->function->codeData);
} catch (Exception &ex) {
@@ -393,7 +393,7 @@ Value ScriptFunction::call(Managed *that, ExecutionContext *context, const Value
}
}
- Value result = Value::undefinedValue();
+ Value result;
try {
result = f->function->code(ctx, f->function->codeData);
} catch (Exception &ex) {