aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4errorobject.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@theqtcompany.com>2015-01-10 20:51:15 +0100
committerLars Knoll <lars.knoll@digia.com>2015-01-21 13:18:47 +0100
commit36662b60b09f636c3623057f8116e862f94ff440 (patch)
tree1a8a1ee74db89745ea3e327f70229b6b29bb2e62 /src/qml/jsruntime/qv4errorobject.cpp
parent85bf8d732b9651ce7b88d5464b8b3aae138e1893 (diff)
Remove all the setVTable() calls that aren't required anymore
The memory manager's allocation methods now set this up correctly for us :) Change-Id: I8492bf732df601f95a1a851fb3804127ffc83935 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4errorobject.cpp')
-rw-r--r--src/qml/jsruntime/qv4errorobject.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/qml/jsruntime/qv4errorobject.cpp b/src/qml/jsruntime/qv4errorobject.cpp
index 2eceab91d6..bf966e5028 100644
--- a/src/qml/jsruntime/qv4errorobject.cpp
+++ b/src/qml/jsruntime/qv4errorobject.cpp
@@ -248,13 +248,11 @@ DEFINE_OBJECT_VTABLE(URIErrorCtor);
Heap::ErrorCtor::ErrorCtor(QV4::ExecutionContext *scope)
: Heap::FunctionObject(scope, QStringLiteral("Error"))
{
- setVTable(QV4::ErrorCtor::staticVTable());
}
Heap::ErrorCtor::ErrorCtor(QV4::ExecutionContext *scope, const QString &name)
: Heap::FunctionObject(scope, name)
{
- setVTable(QV4::ErrorCtor::staticVTable());
}
ReturnedValue ErrorCtor::construct(Managed *m, CallData *callData)
@@ -272,7 +270,6 @@ ReturnedValue ErrorCtor::call(Managed *that, CallData *callData)
Heap::EvalErrorCtor::EvalErrorCtor(QV4::ExecutionContext *scope)
: Heap::ErrorCtor(scope, QStringLiteral("EvalError"))
{
- setVTable(QV4::EvalErrorCtor::staticVTable());
}
ReturnedValue EvalErrorCtor::construct(Managed *m, CallData *callData)
@@ -285,7 +282,6 @@ ReturnedValue EvalErrorCtor::construct(Managed *m, CallData *callData)
Heap::RangeErrorCtor::RangeErrorCtor(QV4::ExecutionContext *scope)
: Heap::ErrorCtor(scope, QStringLiteral("RangeError"))
{
- setVTable(QV4::RangeErrorCtor::staticVTable());
}
ReturnedValue RangeErrorCtor::construct(Managed *m, CallData *callData)
@@ -298,7 +294,6 @@ ReturnedValue RangeErrorCtor::construct(Managed *m, CallData *callData)
Heap::ReferenceErrorCtor::ReferenceErrorCtor(QV4::ExecutionContext *scope)
: Heap::ErrorCtor(scope, QStringLiteral("ReferenceError"))
{
- setVTable(QV4::ReferenceErrorCtor::staticVTable());
}
ReturnedValue ReferenceErrorCtor::construct(Managed *m, CallData *callData)
@@ -311,7 +306,6 @@ ReturnedValue ReferenceErrorCtor::construct(Managed *m, CallData *callData)
Heap::SyntaxErrorCtor::SyntaxErrorCtor(QV4::ExecutionContext *scope)
: Heap::ErrorCtor(scope, QStringLiteral("SyntaxError"))
{
- setVTable(QV4::SyntaxErrorCtor::staticVTable());
}
ReturnedValue SyntaxErrorCtor::construct(Managed *m, CallData *callData)
@@ -324,7 +318,6 @@ ReturnedValue SyntaxErrorCtor::construct(Managed *m, CallData *callData)
Heap::TypeErrorCtor::TypeErrorCtor(QV4::ExecutionContext *scope)
: Heap::ErrorCtor(scope, QStringLiteral("TypeError"))
{
- setVTable(QV4::TypeErrorCtor::staticVTable());
}
ReturnedValue TypeErrorCtor::construct(Managed *m, CallData *callData)
@@ -337,7 +330,6 @@ ReturnedValue TypeErrorCtor::construct(Managed *m, CallData *callData)
Heap::URIErrorCtor::URIErrorCtor(QV4::ExecutionContext *scope)
: Heap::ErrorCtor(scope, QStringLiteral("URIError"))
{
- setVTable(QV4::URIErrorCtor::staticVTable());
}
ReturnedValue URIErrorCtor::construct(Managed *m, CallData *callData)