Reimplement QAbstractSocket::setReadBufferSize() properly
This function takes a qint64 argument, not an int argument. peerwireclient.h:119:10: warning: 'PeerWireClient::setReadBufferSize' hides overloaded virtual function [-Woverloaded-virtual] void setReadBufferSize(int size); ^ src/network/socket/qabstractsocket.h:162:18: note: hidden overloaded virtual function 'QAbstractSocket::setReadBufferSize' declared here virtual void setReadBufferSize(qint64 size); ^ Change-Id: I29b67b216147771ff2d662d309d2c31d977e9d3f Reviewed-by: Robin Burchell <robin+qt@viroteck.net> Reviewed-by: Jonas Gastal <jgastal@profusion.mobi>
This commit is contained in:
parent
ae664f7dc7
commit
a71d956013
@ -375,7 +375,7 @@ qint64 PeerWireClient::uploadSpeed() const
|
||||
return sum / (8 * 2);
|
||||
}
|
||||
|
||||
void PeerWireClient::setReadBufferSize(int size)
|
||||
void PeerWireClient::setReadBufferSize(qint64 size)
|
||||
{
|
||||
socket.setReadBufferSize(size);
|
||||
}
|
||||
|
@ -116,7 +116,7 @@ public:
|
||||
qint64 socketBytesAvailable() const { return socket.bytesAvailable(); }
|
||||
qint64 socketBytesToWrite() const { return socket.bytesToWrite(); }
|
||||
|
||||
void setReadBufferSize(int size);
|
||||
void setReadBufferSize(qint64 size);
|
||||
|
||||
signals:
|
||||
void infoHashReceived(const QByteArray &infoHash);
|
||||
|
Loading…
Reference in New Issue
Block a user