From ad04f0c856e09c9cc9df3ec1bbe8e4455508c1da Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Mon, 15 Apr 2013 10:58:53 +0200 Subject: Tiny optimisation Change-Id: Iba4355e547c6f0d18bb31a977448bf433021c9f9 Reviewed-by: Simon Hausmann --- src/v4/qv4functionobject.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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) { -- cgit v1.2.3