Browse Source

Remove Deprecated: operator= for QHostAddress is deprecated

Use QHostAddress(string) instead
QGC4.4
Tomaz Canabrava 6 years ago committed by Daniel Agar
parent
commit
3a7ddee7f9
  1. 2
      src/comm/TCPLink.cc

2
src/comm/TCPLink.cc

@ -302,7 +302,7 @@ void TCPConfiguration::setHost(const QString host)
if(ipAdd.isEmpty()) { if(ipAdd.isEmpty()) {
qWarning() << "TCP:" << "Could not resolve host:" << host; qWarning() << "TCP:" << "Could not resolve host:" << host;
} else { } else {
_address = ipAdd; _address = QHostAddress(ipAdd);
} }
} }

Loading…
Cancel
Save