diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2016-05-14 00:55:43 +0200 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2016-05-14 16:02:51 +0000 |
commit | 9efaa9407629310e4bf669757f5e1b88b0191e2c (patch) | |
tree | ce4918c174a244cd05ef4c620009c39deb53d76e /src/render/lights | |
parent | 6da09812519d1656d03c1a8c97b6ba53f38be705 (diff) |
Add more explicit
Change-Id: Iaa91d6248cbc3822ed3380e360d2880d4894446d
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/render/lights')
-rw-r--r-- | src/render/lights/qabstractlight.h | 5 | ||||
-rw-r--r-- | src/render/lights/qabstractlight_p.h | 2 | ||||
-rw-r--r-- | src/render/lights/qdirectionallight.h | 2 | ||||
-rw-r--r-- | src/render/lights/qspotlight.h | 2 |
4 files changed, 5 insertions, 6 deletions
diff --git a/src/render/lights/qabstractlight.h b/src/render/lights/qabstractlight.h index 3881257c4..8ac9bc05f 100644 --- a/src/render/lights/qabstractlight.h +++ b/src/render/lights/qabstractlight.h @@ -75,9 +75,8 @@ public Q_SLOTS: void setColor(const QColor &color); void setIntensity(float intensity); -protected : - QAbstractLight(QAbstractLightPrivate &dd, Qt3DCore::QNode *parent = nullptr); - +protected: + explicit QAbstractLight(QAbstractLightPrivate &dd, Qt3DCore::QNode *parent = nullptr); Q_SIGNALS: void colorChanged(const QColor &color); diff --git a/src/render/lights/qabstractlight_p.h b/src/render/lights/qabstractlight_p.h index a903f43f6..1e5ce588f 100644 --- a/src/render/lights/qabstractlight_p.h +++ b/src/render/lights/qabstractlight_p.h @@ -63,7 +63,7 @@ class QAbstractLight; class Q_AUTOTEST_EXPORT QAbstractLightPrivate : public Qt3DCore::QComponentPrivate { public: - QAbstractLightPrivate(QAbstractLight::Type type); + explicit QAbstractLightPrivate(QAbstractLight::Type type); Q_DECLARE_PUBLIC(QAbstractLight) QAbstractLight::Type m_type; diff --git a/src/render/lights/qdirectionallight.h b/src/render/lights/qdirectionallight.h index a0c756330..46d5db927 100644 --- a/src/render/lights/qdirectionallight.h +++ b/src/render/lights/qdirectionallight.h @@ -65,7 +65,7 @@ Q_SIGNALS: void worldDirectionChanged(const QVector3D &worldDirection); protected: - QDirectionalLight(QDirectionalLightPrivate &dd, Qt3DCore::QNode *parent = nullptr); + explicit QDirectionalLight(QDirectionalLightPrivate &dd, Qt3DCore::QNode *parent = nullptr); private: Q_DECLARE_PRIVATE(QDirectionalLight) diff --git a/src/render/lights/qspotlight.h b/src/render/lights/qspotlight.h index fff75e50e..846f8907e 100644 --- a/src/render/lights/qspotlight.h +++ b/src/render/lights/qspotlight.h @@ -83,7 +83,7 @@ Q_SIGNALS: void cutOffAngleChanged(float cutOffAngle); protected: - QSpotLight(QSpotLightPrivate &dd, Qt3DCore::QNode *parent = nullptr); + explicit QSpotLight(QSpotLightPrivate &dd, Qt3DCore::QNode *parent = nullptr); private: Q_DECLARE_PRIVATE(QSpotLight) |