diff options
author | Sergio Ahumada <sergio.ahumada@nokia.com> | 2012-09-08 19:08:53 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-09-14 15:23:15 +0200 |
commit | 0a37bcf24547101595299572533e5e3a98e04e1d (patch) | |
tree | 015338f188df67ebdfe4a5ab7c2fd8fc84251be7 /src/platformsupport | |
parent | 26b6cce44bc4fb81b09420bdaf56fc6036d1eece (diff) |
Mark (non-public API's) ctor's as explicit
Make C++ class constructors that can be used with only one
required argument 'explicit' to minimize wrong use of the class.
Change-Id: I12ad5b6eb1794108c6b7464a2573e84068733b03
Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/platformsupport')
-rw-r--r-- | src/platformsupport/input/evdevtablet/qevdevtablet_p.h | 4 | ||||
-rw-r--r-- | src/platformsupport/input/evdevtouch/qevdevtouch_p.h | 4 | ||||
-rw-r--r-- | src/platformsupport/linuxaccessibility/cache_p.h | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/platformsupport/input/evdevtablet/qevdevtablet_p.h b/src/platformsupport/input/evdevtablet/qevdevtablet_p.h index 146394d0d4..d57f7b9f5c 100644 --- a/src/platformsupport/input/evdevtablet/qevdevtablet_p.h +++ b/src/platformsupport/input/evdevtablet/qevdevtablet_p.h @@ -57,7 +57,7 @@ class QEvdevTabletHandler : public QObject Q_OBJECT public: - QEvdevTabletHandler(const QString &spec = QString(), QObject *parent = 0); + explicit QEvdevTabletHandler(const QString &spec = QString(), QObject *parent = 0); ~QEvdevTabletHandler(); private slots: @@ -70,7 +70,7 @@ private: class QEvdevTabletHandlerThread : public QThread { public: - QEvdevTabletHandlerThread(const QString &spec, QObject *parent = 0); + explicit QEvdevTabletHandlerThread(const QString &spec, QObject *parent = 0); ~QEvdevTabletHandlerThread(); void run(); QEvdevTabletHandler *handler() { return m_handler; } diff --git a/src/platformsupport/input/evdevtouch/qevdevtouch_p.h b/src/platformsupport/input/evdevtouch/qevdevtouch_p.h index a7d8e583db..6c227c881f 100644 --- a/src/platformsupport/input/evdevtouch/qevdevtouch_p.h +++ b/src/platformsupport/input/evdevtouch/qevdevtouch_p.h @@ -63,7 +63,7 @@ class QEvdevTouchScreenHandler : public QObject Q_OBJECT public: - QEvdevTouchScreenHandler(const QString &spec = QString(), QObject *parent = 0); + explicit QEvdevTouchScreenHandler(const QString &spec = QString(), QObject *parent = 0); ~QEvdevTouchScreenHandler(); private slots: @@ -81,7 +81,7 @@ private: class QEvdevTouchScreenHandlerThread : public QThread { public: - QEvdevTouchScreenHandlerThread(const QString &spec, QObject *parent = 0); + explicit QEvdevTouchScreenHandlerThread(const QString &spec, QObject *parent = 0); ~QEvdevTouchScreenHandlerThread(); void run(); QEvdevTouchScreenHandler *handler() { return m_handler; } diff --git a/src/platformsupport/linuxaccessibility/cache_p.h b/src/platformsupport/linuxaccessibility/cache_p.h index 0e3d8913f6..f19049a01e 100644 --- a/src/platformsupport/linuxaccessibility/cache_p.h +++ b/src/platformsupport/linuxaccessibility/cache_p.h @@ -54,7 +54,7 @@ class QSpiDBusCache : public QObject Q_OBJECT public: - QSpiDBusCache(QDBusConnection c, QObject* parent = 0); + explicit QSpiDBusCache(QDBusConnection c, QObject* parent = 0); void emitAddAccessible(const QSpiAccessibleCacheItem& item); void emitRemoveAccessible(const QSpiObjectReference& item); |