From d9c62405db9a3f8bffaa5789bd63f59a65e29e3a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 9 Apr 2013 00:21:13 +0300 Subject: improve messagein class. --- src/net/messagein.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/net/messagein.h') diff --git a/src/net/messagein.h b/src/net/messagein.h index c6c5ce7eb..2f152924d 100644 --- a/src/net/messagein.h +++ b/src/net/messagein.h @@ -89,7 +89,7 @@ class MessageIn /** * Skips a given number of bytes. */ - virtual void skip(unsigned int length); + virtual void skip(const unsigned int length); /** * Reads a string. If a length is not given (-1), it is assumed @@ -105,7 +105,8 @@ class MessageIn virtual ~MessageIn() { } - static uint8_t fromServerDirection(uint8_t serverDir) A_WARN_UNUSED; + static uint8_t fromServerDirection(const uint8_t serverDir) + A_WARN_UNUSED; protected: /** -- cgit v1.2.3-60-g2f50