summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2013-11-09 22:50:38 +0400
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-11 08:39:58 +0100
commitdc4e899a26cbdfdca7a74871537b83b8dc0bb45f (patch)
tree340eb6458d99e0183d60271999b915dd1bf5cc72
parentee4bbc0df5ab6886e3a1467782faf234597a2921 (diff)
Fix the properties counter declaration place
The properties counter shall count quantity of the processed properties for the each found device. Tested on Mac OSX 10.9 with Qt5, no regressions found. Change-Id: Ie665c52dfdea5a0f9c358909e903703c41144a60 Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com> Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
-rw-r--r--src/serialport/qserialportinfo_mac.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/serialport/qserialportinfo_mac.cpp b/src/serialport/qserialportinfo_mac.cpp
index 2a9307c8..af575989 100644
--- a/src/serialport/qserialportinfo_mac.cpp
+++ b/src/serialport/qserialportinfo_mac.cpp
@@ -64,7 +64,6 @@ QList<QSerialPortInfo> QSerialPortInfo::availablePorts()
QList<QSerialPortInfo> serialPortInfoList;
static const int propertyCount = 6;
- int matchingPropertiesCounter = 0;
::CFMutableDictionaryRef matching = ::IOServiceMatching(kIOSerialBSDServiceValue);
@@ -94,6 +93,8 @@ QList<QSerialPortInfo> QSerialPortInfo::availablePorts()
::CFTypeRef vendorIdentifier = 0;
::CFTypeRef productIdentifier = 0;
+ int matchingPropertiesCounter = 0;
+
io_registry_entry_t entry = service;
// Find MacOSX-specific properties names.