From 2fadffdc4630eca35d775d973a368feae2630bd9 Mon Sep 17 00:00:00 2001 From: Oleg Shparber Date: Wed, 31 Dec 2014 10:42:15 -0800 Subject: Use QV4::ScopedFunctionObject typedef instead of actual type Change-Id: I6b4effaa5bef992b4ae9402eea7fe655bc7b18f0 Reviewed-by: Simon Hausmann --- src/qml/jsruntime/qv4arrayobject.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/qml/jsruntime/qv4arrayobject.cpp') diff --git a/src/qml/jsruntime/qv4arrayobject.cpp b/src/qml/jsruntime/qv4arrayobject.cpp index f6e676de2c..d388875e3b 100644 --- a/src/qml/jsruntime/qv4arrayobject.cpp +++ b/src/qml/jsruntime/qv4arrayobject.cpp @@ -690,7 +690,7 @@ ReturnedValue ArrayPrototype::method_every(CallContext *ctx) uint len = instance->getLength(); - Scoped callback(scope, ctx->argument(0)); + ScopedFunctionObject callback(scope, ctx->argument(0)); if (!callback) return ctx->engine()->throwTypeError(); @@ -724,7 +724,7 @@ ReturnedValue ArrayPrototype::method_some(CallContext *ctx) uint len = instance->getLength(); - Scoped callback(scope, ctx->argument(0)); + ScopedFunctionObject callback(scope, ctx->argument(0)); if (!callback) return ctx->engine()->throwTypeError(); @@ -758,7 +758,7 @@ ReturnedValue ArrayPrototype::method_forEach(CallContext *ctx) uint len = instance->getLength(); - Scoped callback(scope, ctx->argument(0)); + ScopedFunctionObject callback(scope, ctx->argument(0)); if (!callback) return ctx->engine()->throwTypeError(); @@ -789,7 +789,7 @@ ReturnedValue ArrayPrototype::method_map(CallContext *ctx) uint len = instance->getLength(); - Scoped callback(scope, ctx->argument(0)); + ScopedFunctionObject callback(scope, ctx->argument(0)); if (!callback) return ctx->engine()->throwTypeError(); @@ -826,7 +826,7 @@ ReturnedValue ArrayPrototype::method_filter(CallContext *ctx) uint len = instance->getLength(); - Scoped callback(scope, ctx->argument(0)); + ScopedFunctionObject callback(scope, ctx->argument(0)); if (!callback) return ctx->engine()->throwTypeError(); @@ -867,7 +867,7 @@ ReturnedValue ArrayPrototype::method_reduce(CallContext *ctx) uint len = instance->getLength(); - Scoped callback(scope, ctx->argument(0)); + ScopedFunctionObject callback(scope, ctx->argument(0)); if (!callback) return ctx->engine()->throwTypeError(); @@ -917,7 +917,7 @@ ReturnedValue ArrayPrototype::method_reduceRight(CallContext *ctx) uint len = instance->getLength(); - Scoped callback(scope, ctx->argument(0)); + ScopedFunctionObject callback(scope, ctx->argument(0)); if (!callback) return ctx->engine()->throwTypeError(); -- cgit v1.2.3