summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2017-10-23 19:34:06 (GMT)
committerDenis Shienkov <denis.shienkov@gmail.com>2017-10-24 07:43:19 (GMT)
commit1dc3d4bb64110421c25d845fa920d51b2970e6ca (patch)
tree0ba868d985e26e6e3f24abc08adfa7581fc0ef5b
parent27c0dc578676e7951b92da1f282ac0177edbe9b3 (diff)
downloadqtserialport-1dc3d4bb64110421c25d845fa920d51b2970e6ca.tar.gz
Add missed 'explicit' keywords
Change-Id: I12da9eb3a57fc312fb4b029714166af10755ca76 Reviewed-by: Alex Blasche <alexander.blasche@qt.io> Reviewed-by: André Hartmann <aha_1980@gmx.de>
-rw-r--r--src/serialport/qserialport_unix.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/serialport/qserialport_unix.cpp b/src/serialport/qserialport_unix.cpp
index 4941a86..d5e67aa 100644
--- a/src/serialport/qserialport_unix.cpp
+++ b/src/serialport/qserialport_unix.cpp
@@ -156,7 +156,7 @@ QString serialPortLockFilePath(const QString &portName)
class ReadNotifier : public QSocketNotifier
{
public:
- ReadNotifier(QSerialPortPrivate *d, QObject *parent)
+ explicit ReadNotifier(QSerialPortPrivate *d, QObject *parent)
: QSocketNotifier(d->descriptor, QSocketNotifier::Read, parent)
, dptr(d)
{
@@ -179,7 +179,7 @@ private:
class WriteNotifier : public QSocketNotifier
{
public:
- WriteNotifier(QSerialPortPrivate *d, QObject *parent)
+ explicit WriteNotifier(QSerialPortPrivate *d, QObject *parent)
: QSocketNotifier(d->descriptor, QSocketNotifier::Write, parent)
, dptr(d)
{