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:
Bradley T. Hughes 2012-02-02 09:05:04 +01:00 committed by Qt by Nokia
parent ae664f7dc7
commit a71d956013
2 changed files with 2 additions and 2 deletions

View File

@ -375,7 +375,7 @@ qint64 PeerWireClient::uploadSpeed() const
return sum / (8 * 2); return sum / (8 * 2);
} }
void PeerWireClient::setReadBufferSize(int size) void PeerWireClient::setReadBufferSize(qint64 size)
{ {
socket.setReadBufferSize(size); socket.setReadBufferSize(size);
} }

View File

@ -116,7 +116,7 @@ public:
qint64 socketBytesAvailable() const { return socket.bytesAvailable(); } qint64 socketBytesAvailable() const { return socket.bytesAvailable(); }
qint64 socketBytesToWrite() const { return socket.bytesToWrite(); } qint64 socketBytesToWrite() const { return socket.bytesToWrite(); }
void setReadBufferSize(int size); void setReadBufferSize(qint64 size);
signals: signals:
void infoHashReceived(const QByteArray &infoHash); void infoHashReceived(const QByteArray &infoHash);