QFutureWatcher: Make constructors explicit
authorMarc Mutz <marc.mutz@kdab.com>
Mon, 20 Feb 2012 14:16:25 +0000 (15:16 +0100)
committerQt by Nokia <qt-info@nokia.com>
Sat, 25 Feb 2012 10:43:18 +0000 (11:43 +0100)
Change-Id: I363665725869993b10985004c1c6441ded435dbc
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
src/concurrent/qfuturewatcher.h

index 11dab42..439a25d 100644 (file)
@@ -63,7 +63,7 @@ class Q_CONCURRENT_EXPORT QFutureWatcherBase : public QObject
     Q_DECLARE_PRIVATE(QFutureWatcherBase)
 
 public:
-    QFutureWatcherBase(QObject *parent = 0);
+    explicit QFutureWatcherBase(QObject *parent = 0);
 
     int progressValue() const;
     int progressMinimum() const;
@@ -119,7 +119,7 @@ template <typename T>
 class QFutureWatcher : public QFutureWatcherBase
 {
 public:
-    QFutureWatcher(QObject *_parent = 0)
+    explicit QFutureWatcher(QObject *_parent = 0)
         : QFutureWatcherBase(_parent)
     { }
     ~QFutureWatcher()
@@ -189,7 +189,7 @@ template <>
 class QFutureWatcher<void> : public QFutureWatcherBase
 {
 public:
-    QFutureWatcher(QObject *_parent = 0)
+    explicit QFutureWatcher(QObject *_parent = 0)
         : QFutureWatcherBase(_parent)
     { }
     ~QFutureWatcher()