From c53fef423a8f607e1443b1d409712864f8cac9d5 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Wed, 22 Jan 2014 15:25:50 +0100 Subject: Change virtual methods in ArrayData to take Object pointer Pass a pointer to the underlying object instead of the ArrayData to virtual methods that modify the arrayData. This prepares for allocating the ArrayData together with the array itself. Change-Id: I66fe187f8b1e4d382ab243a518dbde5f18a1d16d 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 aafecb5ad8..6f7281d0be 100644 --- a/src/qml/jsruntime/qv4regexpobject.cpp +++ b/src/qml/jsruntime/qv4regexpobject.cpp @@ -348,7 +348,7 @@ ReturnedValue RegExpPrototype::method_exec(CallContext *ctx) int start = matchOffsets[i * 2]; int end = matchOffsets[i * 2 + 1]; v = (start != -1 && end != -1) ? ctx->engine->newString(s.mid(start, end - start))->asReturnedValue() : Encode::undefined(); - array->arrayData->put(i, v); + array->arrayPut(i, v); } array->setArrayLengthUnchecked(len); -- cgit v1.2.3