diff --git a/core/backends/lan/socketlinereader.h b/core/backends/lan/socketlinereader.h index df11c3ee3..b3be55a70 100644 --- a/core/backends/lan/socketlinereader.h +++ b/core/backends/lan/socketlinereader.h @@ -41,8 +41,8 @@ public: QByteArray readLine() { return mPackages.dequeue(); } qint64 write(const QByteArray& data) { return mSocket->write(data); } - QHostAddress peerAddress() { return mSocket->peerAddress(); } - qint64 bytesAvailable() { return mPackages.size(); } + QHostAddress peerAddress() const { return mSocket->peerAddress(); } + qint64 bytesAvailable() const { return mPackages.size(); } Q_SIGNALS: void readyRead();