summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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.