qsocks5socketengine: avoid impicit detach

by const method usage

Change-Id: I0ff04508917a728acec282920df02c667a29e597
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
Anton Kudryavtsev 2023-09-07 17:24:18 +03:00
parent abef00138f
commit de6d322174

View File

@ -1447,7 +1447,7 @@ qint64 QSocks5SocketEngine::bytesAvailable() const
#ifndef QT_NO_UDPSOCKET
else if (d->mode == QSocks5SocketEnginePrivate::UdpAssociateMode
&& !d->udpData->pendingDatagrams.isEmpty())
return d->udpData->pendingDatagrams.first().data.size();
return d->udpData->pendingDatagrams.constFirst().data.size();
#endif
return 0;
}