diff options
author | Denis Shienkov <denis.shienkov@gmail.com> | 2014-11-21 16:01:30 +0300 |
---|---|---|
committer | Denis Shienkov <denis.shienkov@gmail.com> | 2014-11-21 19:00:34 +0100 |
commit | 7f8d17b6fe903e0603c8e8fea9bdd7eb7fe66f34 (patch) | |
tree | de3dc43e38507ae3a163f082627425a38d54a68e /src/serialport/qserialportinfo.h | |
parent | 7a6da7878566dc18acb540bd29f7e11fa7e3ff66 (diff) |
Fix QSPI::isNull()
The method QSPI::isNull() should return false when QSPI is empty.
Tested on Winsows 8 and Linux with on-board, virtual and USB serial
ports using Qt5 and then Qt4.
Task-number: QTBUG-41262
Change-Id: Ic9e0afc5549311283aef7ec2ed841f5e418b7edf
Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
Diffstat (limited to 'src/serialport/qserialportinfo.h')
-rw-r--r-- | src/serialport/qserialportinfo.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/serialport/qserialportinfo.h b/src/serialport/qserialportinfo.h index 262e54dd..0c7a0f1e 100644 --- a/src/serialport/qserialportinfo.h +++ b/src/serialport/qserialportinfo.h @@ -81,6 +81,7 @@ public: static QList<QSerialPortInfo> availablePorts(); private: + QSerialPortInfo(const QSerialPortInfoPrivate &dd); friend QList<QSerialPortInfo> availablePortsByUdev(); friend QList<QSerialPortInfo> availablePortsBySysfs(); friend QList<QSerialPortInfo> availablePortsByFiltersOfDevices(); |