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/qv4runtime.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/qv4runtime.cpp')
| -rw-r--r-- | src/qml/jsruntime/qv4runtime.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4runtime.cpp b/src/qml/jsruntime/qv4runtime.cpp index 950a8220f4..11f66446d2 100644 --- a/src/qml/jsruntime/qv4runtime.cpp +++ b/src/qml/jsruntime/qv4runtime.cpp @@ -1218,7 +1218,7 @@ ReturnedValue Runtime::method_objectLiteral(ExecutionEngine *engine, const QV4:: { Scope scope(engine); QV4::InternalClass *klass = static_cast<CompiledData::CompilationUnit*>(engine->currentStackFrame->v4Function->compilationUnit)->runtimeClasses[classId]; - ScopedObject o(scope, engine->newObject(klass, engine->objectPrototype())); + ScopedObject o(scope, engine->newObject(klass)); { bool needSparseArray = arrayGetterSetterCountAndFlags >> 30; |
