diff options
author | Lars Knoll <lars.knoll@qt.io> | 2017-10-20 15:26:24 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2017-11-07 09:00:33 +0000 |
commit | 98271afabd409defee3b1f09158e64fabbc35070 (patch) | |
tree | fe62cfa9c05d86473350766f599ef662bac8b4f7 /src/qml/jsruntime/qv4stringobject.cpp | |
parent | f7cc4b4acd97871f99d146da3bbeed951ff4670c (diff) |
Get rid of JSCallData::callAsConstructor()
Change-Id: I7c7a69791e98ba0ce82b4d23785fc12a510c449e
Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4stringobject.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4stringobject.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qml/jsruntime/qv4stringobject.cpp b/src/qml/jsruntime/qv4stringobject.cpp index 0168e09763..b7aefd3742 100644 --- a/src/qml/jsruntime/qv4stringobject.cpp +++ b/src/qml/jsruntime/qv4stringobject.cpp @@ -644,9 +644,9 @@ ReturnedValue StringPrototype::method_search(const BuiltinFunction *b, CallData RegExpObject *regExp = regExpObj->as<RegExpObject>(); if (!regExp) { - JSCallData jsCall(scope, scope.engine->regExpCtor(), 1); - jsCall->args[0] = regExpObj; - regExpObj = jsCall.callAsConstructor(); + JSCallData jsCallData(scope, scope.engine->regExpCtor(), 1); + jsCallData->args[0] = regExpObj; + regExpObj = scope.engine->regExpCtor()->callAsConstructor(jsCallData); if (scope.engine->hasException) return QV4::Encode::undefined(); |