diff options
author | Anton Kudryavtsev <a.kudryavtsev@netris.ru> | 2016-02-08 16:19:31 +0300 |
---|---|---|
committer | Anton Kudryavtsev <a.kudryavtsev@netris.ru> | 2016-02-08 19:36:38 +0000 |
commit | e2e190fd69facbda3dea5a8a2a58629083ba835a (patch) | |
tree | 13c0439112f01e2bc58b25773df291017dca7f0f /src/network/access/qhttpthreaddelegate_p.h | |
parent | 4fb7eb0da74798205f5cac693c921065492fa33e (diff) |
QNonContiguousByteDevice: mark atEnd(), size(), pos() methods as const.
These methods do not modify the object.
Change-Id: I9ab9a17fa24f5a608943ec263913df14218214a8
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/network/access/qhttpthreaddelegate_p.h')
-rw-r--r-- | src/network/access/qhttpthreaddelegate_p.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/network/access/qhttpthreaddelegate_p.h b/src/network/access/qhttpthreaddelegate_p.h index ddbbc7f4e6..cec125d7a5 100644 --- a/src/network/access/qhttpthreaddelegate_p.h +++ b/src/network/access/qhttpthreaddelegate_p.h @@ -214,7 +214,7 @@ public: { } - qint64 pos() Q_DECL_OVERRIDE + qint64 pos() const Q_DECL_OVERRIDE { return m_pos; } @@ -254,7 +254,7 @@ public: return true; } - bool atEnd() Q_DECL_OVERRIDE + bool atEnd() const Q_DECL_OVERRIDE { if (m_amount > 0) return false; @@ -284,7 +284,7 @@ public: return b; } - qint64 size() Q_DECL_OVERRIDE + qint64 size() const Q_DECL_OVERRIDE { return m_size; } |