summaryrefslogtreecommitdiffstats
path: root/src/render/lights
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2016-04-12 15:23:26 +0200
committerSimon Hausmann <simon.hausmann@theqtcompany.com>2016-04-23 11:14:34 +0000
commit6d508fa954a2d90e90dff5a2e509aecd13b18f8f (patch)
tree32c788c4c637d6c9660706fc652f6515da3b4559 /src/render/lights
parent0542f1614aa6d50c4c9809fb0ce5f1adb5666d67 (diff)
QNode: make cleanup a private slot
QT3D_CLONEABLE now implements a default dtor that calls _q_ cleanup QT3D_CLONEABLE_CUSTOM_DTOR is used for classes that really need to implement their own dtor but they need to invoke _q_cleanup manually Change-Id: I2937a3b9edeb5a763749f0044360d78ab4461a5e Task-number: QTBUG-51464 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/render/lights')
-rw-r--r--src/render/lights/qlight.cpp5
-rw-r--r--src/render/lights/qlight.h1
2 files changed, 0 insertions, 6 deletions
diff --git a/src/render/lights/qlight.cpp b/src/render/lights/qlight.cpp
index cd68d843c..f86e709e4 100644
--- a/src/render/lights/qlight.cpp
+++ b/src/render/lights/qlight.cpp
@@ -89,11 +89,6 @@ QLight::QLight(QLightPrivate &dd, QNode *parent)
{
}
-QLight::~QLight()
-{
- cleanup();
-}
-
QLight::Type QLight::type() const
{
Q_D(const QLight);
diff --git a/src/render/lights/qlight.h b/src/render/lights/qlight.h
index 45c51aa66..369d35526 100644
--- a/src/render/lights/qlight.h
+++ b/src/render/lights/qlight.h
@@ -68,7 +68,6 @@ public :
Q_ENUM(Type)
explicit QLight(Qt3DCore::QNode *parent = Q_NULLPTR);
- ~QLight();
Type type() const;
QColor color() const;