From 484abc815993040a3be60c657e079eee368bbcd2 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Fri, 13 Feb 2015 13:56:05 +0100 Subject: Get rid of asFunctionObject() Change-Id: Ib4858376dc0ec57fa473c80696abc66a570c90ec Reviewed-by: Simon Hausmann --- src/qml/jsruntime/qv4regexpobject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qml/jsruntime/qv4regexpobject.cpp') diff --git a/src/qml/jsruntime/qv4regexpobject.cpp b/src/qml/jsruntime/qv4regexpobject.cpp index f6e558c810..1948d047fb 100644 --- a/src/qml/jsruntime/qv4regexpobject.cpp +++ b/src/qml/jsruntime/qv4regexpobject.cpp @@ -425,7 +425,7 @@ ReturnedValue RegExpPrototype::method_compile(CallContext *ctx) ScopedCallData callData(scope, ctx->argc()); memcpy(callData->args, ctx->args(), ctx->argc()*sizeof(Value)); - Scoped re(scope, ctx->d()->engine->regExpCtor.asFunctionObject()->construct(callData)); + Scoped re(scope, ctx->d()->engine->regExpCtor.as()->construct(callData)); r->d()->value = re->value(); r->d()->global = re->global(); -- cgit v1.2.1