summaryrefslogtreecommitdiff
path: root/src/net/messagein.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/messagein.h')
-rw-r--r--src/net/messagein.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/messagein.h b/src/net/messagein.h
index 444699c8..f2390baa 100644
--- a/src/net/messagein.h
+++ b/src/net/messagein.h
@@ -61,13 +61,13 @@ class MessageIn
* Returns the message length.
*/
unsigned int
- getLength() { return mLength; }
+ getLength() const { return mLength; }
/**
* Returns the length of unread data.
*/
unsigned int
- getUnreadLength() { return mLength - mPos; }
+ getUnreadLength() const { return mLength - mPos; }
private:
const char* mData; /**< The message data. */