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:
parent
abef00138f
commit
de6d322174
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user