From 90ada8bfd0fd37bde91c54285b522f1fef397403 Mon Sep 17 00:00:00 2001 From: David Mason Date: Wed, 3 Jan 2024 19:33:37 +0000 Subject: [PATCH] #855 --- src/trixterxdreamv1serial.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/trixterxdreamv1serial.cpp b/src/trixterxdreamv1serial.cpp index 9d0c684f1..8cdd708ea 100644 --- a/src/trixterxdreamv1serial.cpp +++ b/src/trixterxdreamv1serial.cpp @@ -20,8 +20,8 @@ QStringList trixterxdreamv1serial::availablePorts(bool debug) { QStringList result; #ifndef Q_OS_IOS - - for(auto port : QSerialPortInfo::availablePorts()) { + auto ports = QSerialPortInfo::availablePorts(); + for(const auto &port : ports) { #if defined(Q_OS_LINUX) if(!port.startsWith("ttyUSB"))