diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-01-08 11:44:51 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-04-12 13:58:52 +0000 |
commit | b6bb3fe4238c93d865e255c4681f07b9d4175529 (patch) | |
tree | 413c1c953f3e728aa3eb8938a1e36e2c4af3d1a5 /src/qml/jsruntime/qv4regexpobject.cpp | |
parent | 278b144a35fb5e5068877cfd456b58d690b9caaf (diff) |
Clean up Engine::newObject/newArrayObject
They don't need a prototype argument neither anymore.
Change-Id: I80fa99cb382e8dca4cfa51fdd87b4c9b0f59573a
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4regexpobject.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4regexpobject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4regexpobject.cpp b/src/qml/jsruntime/qv4regexpobject.cpp index 000e2c3a7e..69b8451a5b 100644 --- a/src/qml/jsruntime/qv4regexpobject.cpp +++ b/src/qml/jsruntime/qv4regexpobject.cpp @@ -387,7 +387,7 @@ ReturnedValue RegExpPrototype::method_exec(const FunctionObject *b, const Value } // fill in result data - ScopedArrayObject array(scope, scope.engine->newArrayObject(scope.engine->internalClasses[EngineBase::Class_RegExpExecArray], scope.engine->arrayPrototype())); + ScopedArrayObject array(scope, scope.engine->newArrayObject(scope.engine->internalClasses[EngineBase::Class_RegExpExecArray])); int len = r->value()->captureCount(); array->arrayReserve(len); ScopedValue v(scope); |