diff options
author | Denis Shienkov <denis.shienkov@gmail.com> | 2017-09-28 13:22:28 +0300 |
---|---|---|
committer | Denis Shienkov <denis.shienkov@gmail.com> | 2017-10-12 08:44:59 +0000 |
commit | 42b0324d3c37d9bde5e06e183ec770c7556341c2 (patch) | |
tree | 21a03b3c8bbcbb8503993915c07104eeb721581a /src/serialport/qserialportinfo_p.h | |
parent | 07e1fc7bb93dc4c306d8e64f4cb88d42177cba2e (diff) | |
download | qtserialport-42b0324d3c37d9bde5e06e183ec770c7556341c2.tar.gz |
Use C++11 member class initialization
Change-Id: I427b993a3a71f199029a8956cdf0dc2c98f0e444
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Diffstat (limited to 'src/serialport/qserialportinfo_p.h')
-rw-r--r-- | src/serialport/qserialportinfo_p.h | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/src/serialport/qserialportinfo_p.h b/src/serialport/qserialportinfo_p.h index 483ff8c..405cc41 100644 --- a/src/serialport/qserialportinfo_p.h +++ b/src/serialport/qserialportinfo_p.h @@ -60,18 +60,6 @@ QT_BEGIN_NAMESPACE class Q_AUTOTEST_EXPORT QSerialPortInfoPrivate { public: - QSerialPortInfoPrivate() - : vendorIdentifier(0) - , productIdentifier(0) - , hasVendorIdentifier(false) - , hasProductIdentifier(false) - { - } - - ~QSerialPortInfoPrivate() - { - } - static QString portNameToSystemLocation(const QString &source); static QString portNameFromSystemLocation(const QString &source); @@ -81,11 +69,11 @@ public: QString manufacturer; QString serialNumber; - quint16 vendorIdentifier; - quint16 productIdentifier; + quint16 vendorIdentifier = 0; + quint16 productIdentifier = 0; - bool hasVendorIdentifier; - bool hasProductIdentifier; + bool hasVendorIdentifier = false; + bool hasProductIdentifier = false; }; class QSerialPortInfoPrivateDeleter |