From fbbaa854b28b9f5c15fd30f32388b1c0941d9767 Mon Sep 17 00:00:00 2001 From: Albert Vaca Date: Sat, 4 Apr 2015 19:03:24 -0700 Subject: [PATCH] Const --- core/backends/lan/socketlinereader.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();