aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4typedarray.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2017-10-20 15:26:24 +0200
committerLars Knoll <lars.knoll@qt.io>2017-11-07 09:00:33 +0000
commit98271afabd409defee3b1f09158e64fabbc35070 (patch)
treefe62cfa9c05d86473350766f599ef662bac8b4f7 /src/qml/jsruntime/qv4typedarray.cpp
parentf7cc4b4acd97871f99d146da3bbeed951ff4670c (diff)
Get rid of JSCallData::callAsConstructor()
Change-Id: I7c7a69791e98ba0ce82b4d23785fc12a510c449e Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4typedarray.cpp')
-rw-r--r--src/qml/jsruntime/qv4typedarray.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/qml/jsruntime/qv4typedarray.cpp b/src/qml/jsruntime/qv4typedarray.cpp
index 3f147acf4b..8583d5da06 100644
--- a/src/qml/jsruntime/qv4typedarray.cpp
+++ b/src/qml/jsruntime/qv4typedarray.cpp
@@ -572,9 +572,9 @@ ReturnedValue TypedArrayPrototype::method_subarray(const BuiltinFunction *builti
if (!constructor)
return scope.engine->throwTypeError();
- JSCallData jsCall(scope, constructor, 3);
- jsCall->args[0] = buffer;
- jsCall->args[1] = Encode(a->d()->byteOffset + begin*a->d()->type->bytesPerElement);
- jsCall->args[2] = Encode(newLen);
- return jsCall.callAsConstructor();
+ JSCallData jsCallData(scope, constructor, 3);
+ jsCallData->args[0] = buffer;
+ jsCallData->args[1] = Encode(a->d()->byteOffset + begin*a->d()->type->bytesPerElement);
+ jsCallData->args[2] = Encode(newLen);
+ return constructor->callAsConstructor(jsCallData);
}