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/memory/qv4mm_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/memory/qv4mm_p.h')
-rw-r--r-- | src/qml/memory/qv4mm_p.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/qml/memory/qv4mm_p.h b/src/qml/memory/qv4mm_p.h index 1c059cafa2..65652bc72e 100644 --- a/src/qml/memory/qv4mm_p.h +++ b/src/qml/memory/qv4mm_p.h @@ -216,12 +216,10 @@ public: } template <typename ObjectType, typename... Args> - typename ObjectType::Data *allocObject(InternalClass *ic, Object *prototype, Args... args) + typename ObjectType::Data *allocObject(InternalClass *ic, Args... args) { Scope scope(engine); Scoped<ObjectType> t(scope, allocateObject<ObjectType>(ic)); - Q_ASSERT(t->internalClass()->prototype == (prototype ? prototype->d() : nullptr)); - Q_UNUSED(prototype); t->d_unchecked()->init(args...); return t->d(); } |