summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2016-03-03 10:21:59 +0100
committerMarc Mutz <marc.mutz@kdab.com>2016-03-03 17:19:29 +0000
commit1e42bf9e28ee0578277047735a5be24fc68abb2c (patch)
treec77b9d707130b4e58b1cc87bc4c0603cd328ecb3 /src
parentda9112e6385eac93bfb467d169e1d001d83e1ce9 (diff)
downloadqtsensors-1e42bf9e28ee0578277047735a5be24fc68abb2c.tar.gz
Make more ctors explicit
Added explicit where it was missing. This is not a source- incompatible change, because code that breaks by this is a bug. Let's not have this sitting around in an LTS. Change-Id: Iadcd2f1c751bb5a9cef96b2732bb3a7a8e34c6f8 Reviewed-by: Lorn Potter <lorn.potter@canonical.com>
Diffstat (limited to 'src')
-rw-r--r--src/sensors/gestures/qsensorgesture.h2
-rw-r--r--src/sensors/gestures/qsensorgesturerecognizer.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/sensors/gestures/qsensorgesture.h b/src/sensors/gestures/qsensorgesture.h
index dda7d25..af3fbba 100644
--- a/src/sensors/gestures/qsensorgesture.h
+++ b/src/sensors/gestures/qsensorgesture.h
@@ -52,7 +52,7 @@ class Q_SENSORS_EXPORT QSensorGesture : public QObject
{
//Do not use Q_OBJECT here
public:
- QSensorGesture(const QStringList &ids, QObject *parent = Q_NULLPTR);
+ explicit QSensorGesture(const QStringList &ids, QObject *parent = Q_NULLPTR);
~QSensorGesture();
bool isActive();
diff --git a/src/sensors/gestures/qsensorgesturerecognizer.h b/src/sensors/gestures/qsensorgesturerecognizer.h
index 675ff61..c8e406a 100644
--- a/src/sensors/gestures/qsensorgesturerecognizer.h
+++ b/src/sensors/gestures/qsensorgesturerecognizer.h
@@ -47,7 +47,7 @@ class Q_SENSORS_EXPORT QSensorGestureRecognizer : public QObject
{
Q_OBJECT
public:
- QSensorGestureRecognizer(QObject *parent = Q_NULLPTR);
+ explicit QSensorGestureRecognizer(QObject *parent = Q_NULLPTR);
virtual ~QSensorGestureRecognizer();
virtual QString id() const = 0;