diff --git a/src/comm/LinkManager.cc b/src/comm/LinkManager.cc index 43e46a8c552451544649af01a2f0512caf10c36f..63ff231d0396eb717acbb6105813c7fd4f10b174 100644 --- a/src/comm/LinkManager.cc +++ b/src/comm/LinkManager.cc @@ -518,7 +518,7 @@ void LinkManager::_updateAutoConnectLinks(void) #endif // Iterate Comm Ports - for (QGCSerialPortInfo portInfo: portList) { + for (const QGCSerialPortInfo& portInfo: portList) { qCDebug(LinkManagerVerboseLog) << "-----------------------------------------------------"; qCDebug(LinkManagerVerboseLog) << "portName: " << portInfo.portName(); qCDebug(LinkManagerVerboseLog) << "systemLocation: " << portInfo.systemLocation();