diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-01-08 11:40:39 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-04-12 13:58:45 +0000 |
commit | 6c2f6e029ea39aada85b297721a366faaa8aeb5f (patch) | |
tree | 9f0e0209be404e552322ae087f7897a1de64538a /src/qml/jsruntime/qv4errorobject_p.h | |
parent | f3ae6799e1089321c2cd959b086f66b9bb9143b3 (diff) |
Cleanup MM::allocObject()
The prototype argument has been unused for quite some time,
finally remove it.
Change-Id: Ifcebe413a1951ed972b370afc48640bd22969943
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4errorobject_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4errorobject_p.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qml/jsruntime/qv4errorobject_p.h b/src/qml/jsruntime/qv4errorobject_p.h index 6b578e8c38..bbb2e1ad55 100644 --- a/src/qml/jsruntime/qv4errorobject_p.h +++ b/src/qml/jsruntime/qv4errorobject_p.h @@ -330,7 +330,7 @@ template <typename T> Heap::Object *ErrorObject::create(ExecutionEngine *e, const Value &message) { InternalClass *ic = e->internalClasses[message.isUndefined() ? EngineBase::Class_ErrorObject : EngineBase::Class_ErrorObjectWithMessage]; ic = ic->changePrototype(T::defaultPrototype(e)->d()); - return e->memoryManager->allocObject<T>(ic, T::defaultPrototype(e), message); + return e->memoryManager->allocObject<T>(ic, message); } template <typename T> Heap::Object *ErrorObject::create(ExecutionEngine *e, const QString &message) { @@ -338,7 +338,7 @@ Heap::Object *ErrorObject::create(ExecutionEngine *e, const QString &message) { ScopedValue v(scope, message.isEmpty() ? Encode::undefined() : e->newString(message)->asReturnedValue()); InternalClass *ic = e->internalClasses[v->isUndefined() ? EngineBase::Class_ErrorObject : EngineBase::Class_ErrorObjectWithMessage]; ic = ic->changePrototype(T::defaultPrototype(e)->d()); - return e->memoryManager->allocObject<T>(ic, T::defaultPrototype(e), v); + return e->memoryManager->allocObject<T>(ic, v); } template <typename T> Heap::Object *ErrorObject::create(ExecutionEngine *e, const QString &message, const QString &filename, int line, int column) { @@ -346,7 +346,7 @@ Heap::Object *ErrorObject::create(ExecutionEngine *e, const QString &message, co ScopedValue v(scope, message.isEmpty() ? Encode::undefined() : e->newString(message)->asReturnedValue()); InternalClass *ic = e->internalClasses[v->isUndefined() ? EngineBase::Class_ErrorObject : EngineBase::Class_ErrorObjectWithMessage]; ic = ic->changePrototype(T::defaultPrototype(e)->d()); - return e->memoryManager->allocObject<T>(ic, T::defaultPrototype(e), v, filename, line, column); + return e->memoryManager->allocObject<T>(ic, v, filename, line, column); } |