Change old style cast to C++ cast

Change old style cast to C++ cast

Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
Bensuperpc
2022-10-22 13:04:48 +02:00
parent 7a8c963722
commit 56ae4e5b6a
6 changed files with 9 additions and 9 deletions

View File

@ -210,7 +210,7 @@ void LocalPeer::receiveConnection()
return;
}
while (socket->bytesAvailable() < (int)sizeof(quint32))
while (socket->bytesAvailable() < static_cast<int>(sizeof(quint32)))
{
socket->waitForReadyRead();
}