[libcalamaresui] Warnings-- : we know TCP ports are 16 bit

This commit is contained in:
Adriaan de Groot 2021-12-07 14:28:43 +01:00
parent 79ae3cd00f
commit 0b6239a996

View File

@ -69,7 +69,8 @@ STATICTEST QString
ficheLogUpload( const QByteArray& pasteData, const QUrl& serverUrl, QObject* parent )
{
QTcpSocket* socket = new QTcpSocket( parent );
socket->connectToHost( serverUrl.host(), serverUrl.port() );
// 16 bits of port-number
socket->connectToHost( serverUrl.host(), quint16( serverUrl.port() ) );
if ( !socket->waitForConnected() )
{