diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-04-09 00:21:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-04-09 00:33:31 +0300 |
commit | d9c62405db9a3f8bffaa5789bd63f59a65e29e3a (patch) | |
tree | 78c5417e3d2818f1844cd0a0730b6570eefbb9ef /src/net/messagein.h | |
parent | 02215574dc2b24eeef9c4ab55776334856bfbaf5 (diff) | |
download | mv-d9c62405db9a3f8bffaa5789bd63f59a65e29e3a.tar.gz mv-d9c62405db9a3f8bffaa5789bd63f59a65e29e3a.tar.bz2 mv-d9c62405db9a3f8bffaa5789bd63f59a65e29e3a.tar.xz mv-d9c62405db9a3f8bffaa5789bd63f59a65e29e3a.zip |
improve messagein class.
Diffstat (limited to 'src/net/messagein.h')
-rw-r--r-- | src/net/messagein.h | 5 |
1 files changed, 3 insertions, 2 deletions
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: /** |