aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlxmlhttprequest.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/qml/qqmlxmlhttprequest.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/qml/qqmlxmlhttprequest.cpp')
-rw-r--r--src/qml/qml/qqmlxmlhttprequest.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/qml/qml/qqmlxmlhttprequest.cpp b/src/qml/qml/qqmlxmlhttprequest.cpp
index 552fcd3975..6d730970b3 100644
--- a/src/qml/qml/qqmlxmlhttprequest.cpp
+++ b/src/qml/qml/qqmlxmlhttprequest.cpp
@@ -230,8 +230,6 @@ Heap::NamedNodeMap::NamedNodeMap(ExecutionEngine *engine, NodeImpl *data, const
, list(list)
, d(data)
{
- setVTable(QV4::NamedNodeMap::staticVTable());
-
if (d)
d->addref();
}
@@ -257,8 +255,6 @@ Heap::NodeList::NodeList(ExecutionEngine *engine, NodeImpl *data)
: Heap::Object(engine)
, d(data)
{
- setVTable(QV4::NodeList::staticVTable());
-
if (d)
d->addref();
}
@@ -299,8 +295,6 @@ public:
Heap::NodePrototype::NodePrototype(ExecutionEngine *engine)
: Heap::Object(engine)
{
- setVTable(QV4::NodePrototype::staticVTable());
-
Scope scope(engine);
ScopedObject o(scope, this);
@@ -339,8 +333,6 @@ Heap::Node::Node(ExecutionEngine *engine, NodeImpl *data)
: Heap::Object(engine)
, d(data)
{
- setVTable(QV4::Node::staticVTable());
-
if (d)
d->addref();
}
@@ -1609,7 +1601,6 @@ Heap::QQmlXMLHttpRequestWrapper::QQmlXMLHttpRequestWrapper(ExecutionEngine *engi
: Heap::Object(engine)
, request(request)
{
- setVTable(QV4::QQmlXMLHttpRequestWrapper::staticVTable());
}
struct QQmlXMLHttpRequestCtor : public FunctionObject
@@ -1662,7 +1653,6 @@ DEFINE_OBJECT_VTABLE(QQmlXMLHttpRequestWrapper);
Heap::QQmlXMLHttpRequestCtor::QQmlXMLHttpRequestCtor(ExecutionEngine *engine)
: Heap::FunctionObject(engine->rootContext(), QStringLiteral("XMLHttpRequest"))
{
- setVTable(QV4::QQmlXMLHttpRequestCtor::staticVTable());
Scope scope(engine);
Scoped<QV4::QQmlXMLHttpRequestCtor> ctor(scope, this);