From 002e6105f61269f1474de878ccdb26205e5b226e Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Wed, 11 Sep 2013 14:36:01 +0200 Subject: Require a ValueScope for ScopedCallData as well This brings things more in line with ScopedValue, and also simplifies cleanup of Scoped values. Change-Id: If5f1466b4e13c629d56c1e7c638937f61ba48f77 Reviewed-by: Simon Hausmann --- src/qml/jsruntime/qv4sparsearray.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qml/jsruntime/qv4sparsearray.cpp') diff --git a/src/qml/jsruntime/qv4sparsearray.cpp b/src/qml/jsruntime/qv4sparsearray.cpp index 4a3cf9ebce..dee0d926b4 100644 --- a/src/qml/jsruntime/qv4sparsearray.cpp +++ b/src/qml/jsruntime/qv4sparsearray.cpp @@ -63,7 +63,7 @@ bool ArrayElementLessThan::operator()(const Property &p1, const Property &p2) co if (Object *o = m_comparefn.asObject()) { ValueScope scope(o->engine()); ScopedValue result(scope); - ScopedCallData callData(o->engine(), 2); + ScopedCallData callData(scope, 2); callData->thisObject = Value::undefinedValue(); callData->args[0] = p1.value; callData->args[1] = p2.value; -- cgit v1.2.3