From fcfaaa12278efd3e306841b2c77d4be0247bfbd3 Mon Sep 17 00:00:00 2001 From: Jan Arve Saether Date: Tue, 21 Feb 2017 15:32:58 +0100 Subject: Make all handler constructors explicit Change-Id: I17b3865d70bdc07912d7454b459dea40b9c98df0 Reviewed-by: Shawn Rutledge --- src/quick/handlers/qquickdraghandler_p.h | 2 +- src/quick/handlers/qquickmultipointerhandler_p.h | 2 +- src/quick/handlers/qquickpinchhandler_p.h | 2 +- src/quick/handlers/qquickpointerdevicehandler_p.h | 2 +- src/quick/handlers/qquickpointerhandler_p.h | 2 +- src/quick/handlers/qquickpointersinglehandler_p.h | 2 +- src/quick/handlers/qquicktaphandler_p.h | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/quick/handlers/qquickdraghandler_p.h b/src/quick/handlers/qquickdraghandler_p.h index 6250615091..cfccc19115 100644 --- a/src/quick/handlers/qquickdraghandler_p.h +++ b/src/quick/handlers/qquickdraghandler_p.h @@ -93,7 +93,7 @@ class Q_AUTOTEST_EXPORT QQuickDragHandler : public QQuickPointerSingleHandler Q_PROPERTY(QPointF translation READ translation NOTIFY translationChanged) public: - QQuickDragHandler(QObject *parent = 0); + explicit QQuickDragHandler(QObject *parent = 0); ~QQuickDragHandler(); void handleEventPoint(QQuickEventPoint *point) override; diff --git a/src/quick/handlers/qquickmultipointerhandler_p.h b/src/quick/handlers/qquickmultipointerhandler_p.h index 2a23a14f8a..d6d660ec04 100644 --- a/src/quick/handlers/qquickmultipointerhandler_p.h +++ b/src/quick/handlers/qquickmultipointerhandler_p.h @@ -65,7 +65,7 @@ class Q_AUTOTEST_EXPORT QQuickMultiPointerHandler : public QQuickPointerDeviceHa Q_PROPERTY(qreal pointDistanceThreshold READ pointDistanceThreshold WRITE setPointDistanceThreshold NOTIFY pointDistanceThresholdChanged) public: - QQuickMultiPointerHandler(QObject *parent = 0, int requiredPointCount = 2); + explicit QQuickMultiPointerHandler(QObject *parent = 0, int requiredPointCount = 2); ~QQuickMultiPointerHandler(); int requiredPointCount() const { return m_requiredPointCount; } diff --git a/src/quick/handlers/qquickpinchhandler_p.h b/src/quick/handlers/qquickpinchhandler_p.h index 0861368682..d788e2cb36 100644 --- a/src/quick/handlers/qquickpinchhandler_p.h +++ b/src/quick/handlers/qquickpinchhandler_p.h @@ -81,7 +81,7 @@ public: }; Q_ENUM(PinchOrigin) - QQuickPinchHandler(QObject *parent = 0); + explicit QQuickPinchHandler(QObject *parent = 0); ~QQuickPinchHandler(); qreal minimumScale() const { return m_minimumScale; } diff --git a/src/quick/handlers/qquickpointerdevicehandler_p.h b/src/quick/handlers/qquickpointerdevicehandler_p.h index 2e126381b0..2ca7310da8 100644 --- a/src/quick/handlers/qquickpointerdevicehandler_p.h +++ b/src/quick/handlers/qquickpointerdevicehandler_p.h @@ -63,7 +63,7 @@ class Q_AUTOTEST_EXPORT QQuickPointerDeviceHandler : public QQuickPointerHandler Q_PROPERTY(Qt::MouseButtons acceptedButtons READ acceptedButtons WRITE setAcceptedButtons NOTIFY acceptedButtonsChanged) public: - QQuickPointerDeviceHandler(QObject *parent = 0); + explicit QQuickPointerDeviceHandler(QObject *parent = 0); ~QQuickPointerDeviceHandler(); QQuickPointerDevice::DeviceTypes acceptedDevices() const { return m_acceptedDevices; } diff --git a/src/quick/handlers/qquickpointerhandler_p.h b/src/quick/handlers/qquickpointerhandler_p.h index 715000114e..b5da8cba1f 100644 --- a/src/quick/handlers/qquickpointerhandler_p.h +++ b/src/quick/handlers/qquickpointerhandler_p.h @@ -69,7 +69,7 @@ class Q_QUICK_PRIVATE_EXPORT QQuickPointerHandler : public QObject Q_PROPERTY(QQuickItem * parent READ parentItem CONSTANT) public: - QQuickPointerHandler(QObject *parent = 0); + explicit QQuickPointerHandler(QObject *parent = 0); virtual ~QQuickPointerHandler(); public: diff --git a/src/quick/handlers/qquickpointersinglehandler_p.h b/src/quick/handlers/qquickpointersinglehandler_p.h index ca907e7489..a82ec72ad6 100644 --- a/src/quick/handlers/qquickpointersinglehandler_p.h +++ b/src/quick/handlers/qquickpointersinglehandler_p.h @@ -72,7 +72,7 @@ class Q_QUICK_PRIVATE_EXPORT QQuickPointerSingleHandler : public QQuickPointerDe Q_PROPERTY(QSizeF ellipseDiameters READ ellipseDiameters NOTIFY eventPointHandled) public: - QQuickPointerSingleHandler(QObject *parent = 0); + explicit QQuickPointerSingleHandler(QObject *parent = 0); virtual ~QQuickPointerSingleHandler() { } Qt::MouseButtons pressedButtons() const { return m_pressedButtons; } diff --git a/src/quick/handlers/qquicktaphandler_p.h b/src/quick/handlers/qquicktaphandler_p.h index 5956a7f185..115effa3f7 100644 --- a/src/quick/handlers/qquicktaphandler_p.h +++ b/src/quick/handlers/qquicktaphandler_p.h @@ -75,7 +75,7 @@ public: }; Q_ENUM(GesturePolicy) - QQuickTapHandler(QObject *parent = 0); + explicit QQuickTapHandler(QObject *parent = 0); ~QQuickTapHandler(); bool wantsEventPoint(QQuickEventPoint *point) override; -- cgit v1.2.3