Commit 119221eb authored by Patrick José Pereira's avatar Patrick José Pereira

LinkManager: Use const reference in for loop

Signed-off-by: 's avatarPatrick José Pereira <patrickelectric@gmail.com>
parent 40f6b974
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment