diff options
author | Denis Shienkov <denis.shienkov@gmail.com> | 2016-06-18 14:31:11 +0300 |
---|---|---|
committer | Denis Shienkov <denis.shienkov@gmail.com> | 2016-06-20 13:32:34 +0000 |
commit | 118cc17c8637bd0b63b8ebda74624126c2cf5cd2 (patch) | |
tree | dddac614f10c8c1256764dd896e1ec73fe47bb6c /examples/serialport | |
parent | 6dc22556f55dffc4c018e82f952a7cf6c8da66dd (diff) | |
download | qtserialport-118cc17c8637bd0b63b8ebda74624126c2cf5cd2.tar.gz |
Add 'explicit' keyword where possible to the examples
Change-Id: I7338288caf0d3fcb1ecd52d0e6724aa51c108505
Reviewed-by: Anton Kudryavtsev <a.kudryavtsev@netris.ru>
Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Diffstat (limited to 'examples/serialport')
-rw-r--r-- | examples/serialport/blockingmaster/dialog.h | 2 | ||||
-rw-r--r-- | examples/serialport/blockingmaster/masterthread.h | 2 | ||||
-rw-r--r-- | examples/serialport/blockingslave/dialog.h | 2 | ||||
-rw-r--r-- | examples/serialport/blockingslave/slavethread.h | 2 | ||||
-rw-r--r-- | examples/serialport/creaderasync/serialportreader.h | 2 | ||||
-rw-r--r-- | examples/serialport/cwriterasync/serialportwriter.h | 2 | ||||
-rw-r--r-- | examples/serialport/master/dialog.h | 2 | ||||
-rw-r--r-- | examples/serialport/slave/dialog.h | 2 |
8 files changed, 8 insertions, 8 deletions
diff --git a/examples/serialport/blockingmaster/dialog.h b/examples/serialport/blockingmaster/dialog.h index 4f0e331..6b6ba70 100644 --- a/examples/serialport/blockingmaster/dialog.h +++ b/examples/serialport/blockingmaster/dialog.h @@ -70,7 +70,7 @@ class Dialog : public QDialog Q_OBJECT public: - Dialog(QWidget *parent = 0); + explicit Dialog(QWidget *parent = 0); private slots: void transaction(); diff --git a/examples/serialport/blockingmaster/masterthread.h b/examples/serialport/blockingmaster/masterthread.h index ffb6602..acfd4d9 100644 --- a/examples/serialport/blockingmaster/masterthread.h +++ b/examples/serialport/blockingmaster/masterthread.h @@ -61,7 +61,7 @@ class MasterThread : public QThread Q_OBJECT public: - MasterThread(QObject *parent = 0); + explicit MasterThread(QObject *parent = 0); ~MasterThread(); void transaction(const QString &portName, int waitTimeout, const QString &request); diff --git a/examples/serialport/blockingslave/dialog.h b/examples/serialport/blockingslave/dialog.h index 4e01656..9f16c98 100644 --- a/examples/serialport/blockingslave/dialog.h +++ b/examples/serialport/blockingslave/dialog.h @@ -70,7 +70,7 @@ class Dialog : public QDialog Q_OBJECT public: - Dialog(QWidget *parent = 0); + explicit Dialog(QWidget *parent = 0); private slots: void startSlave(); diff --git a/examples/serialport/blockingslave/slavethread.h b/examples/serialport/blockingslave/slavethread.h index d678a7b..64ab13e 100644 --- a/examples/serialport/blockingslave/slavethread.h +++ b/examples/serialport/blockingslave/slavethread.h @@ -61,7 +61,7 @@ class SlaveThread : public QThread Q_OBJECT public: - SlaveThread(QObject *parent = 0); + explicit SlaveThread(QObject *parent = 0); ~SlaveThread(); void startSlave(const QString &portName, int waitTimeout, const QString &response); diff --git a/examples/serialport/creaderasync/serialportreader.h b/examples/serialport/creaderasync/serialportreader.h index 6c0a2c5..e723c8f 100644 --- a/examples/serialport/creaderasync/serialportreader.h +++ b/examples/serialport/creaderasync/serialportreader.h @@ -69,7 +69,7 @@ class SerialPortReader : public QObject Q_OBJECT public: - SerialPortReader(QSerialPort *serialPort, QObject *parent = 0); + explicit SerialPortReader(QSerialPort *serialPort, QObject *parent = 0); ~SerialPortReader(); private slots: diff --git a/examples/serialport/cwriterasync/serialportwriter.h b/examples/serialport/cwriterasync/serialportwriter.h index a4bc32e..347d005 100644 --- a/examples/serialport/cwriterasync/serialportwriter.h +++ b/examples/serialport/cwriterasync/serialportwriter.h @@ -69,7 +69,7 @@ class SerialPortWriter : public QObject Q_OBJECT public: - SerialPortWriter(QSerialPort *serialPort, QObject *parent = 0); + explicit SerialPortWriter(QSerialPort *serialPort, QObject *parent = 0); ~SerialPortWriter(); void write(const QByteArray &writeData); diff --git a/examples/serialport/master/dialog.h b/examples/serialport/master/dialog.h index b981943..d92a6e2 100644 --- a/examples/serialport/master/dialog.h +++ b/examples/serialport/master/dialog.h @@ -73,7 +73,7 @@ class Dialog : public QDialog Q_OBJECT public: - Dialog(QWidget *parent = 0); + explicit Dialog(QWidget *parent = 0); private slots: void sendRequest(); diff --git a/examples/serialport/slave/dialog.h b/examples/serialport/slave/dialog.h index d03c123..21e8bbe 100644 --- a/examples/serialport/slave/dialog.h +++ b/examples/serialport/slave/dialog.h @@ -73,7 +73,7 @@ class Dialog : public QDialog Q_OBJECT public: - Dialog(QWidget *parent = 0); + explicit Dialog(QWidget *parent = 0); private slots: void startSlave(); |