aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/context2d/qquickcontext2d.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/quick/items/context2d/qquickcontext2d.cpp')
-rw-r--r--src/quick/items/context2d/qquickcontext2d.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/quick/items/context2d/qquickcontext2d.cpp b/src/quick/items/context2d/qquickcontext2d.cpp
index a7d5f7d65f..3ba84b5445 100644
--- a/src/quick/items/context2d/qquickcontext2d.cpp
+++ b/src/quick/items/context2d/qquickcontext2d.cpp
@@ -529,13 +529,9 @@ public:
static QV4::ReturnedValue method_set_textBaseline(QV4::CallContext *ctx);
protected:
- static void destroy(Managed *that)
- {
- static_cast<QQuickJSContext2D *>(that)->~QQuickJSContext2D();
- }
};
-DEFINE_OBJECT_VTABLE(QQuickJSContext2D);
+DEFINE_OBJECT_VTABLE_NO_DESTROY(QQuickJSContext2D);
struct QQuickJSContext2DPrototype : public QV4::Object
@@ -641,7 +637,7 @@ public:
};
-DEFINE_OBJECT_VTABLE(QQuickJSContext2DPrototype);
+DEFINE_OBJECT_VTABLE_NO_DESTROY(QQuickJSContext2DPrototype);
class QQuickContext2DStyle : public QV4::Object
@@ -923,7 +919,7 @@ struct QQuickJSContext2DImageData : public QV4::Object
DEFINE_REF(QQuickJSContext2DImageData, QV4::Object);
-DEFINE_OBJECT_VTABLE(QQuickJSContext2DImageData);
+DEFINE_OBJECT_VTABLE_NO_DESTROY(QQuickJSContext2DImageData);
static QV4::ReturnedValue qt_create_image_data(qreal w, qreal h, QV8Engine* engine, const QImage& image)
{