diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-09-18 21:52:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-09-18 21:52:15 +0300 |
commit | 78744020528ef6231e1606bbe2e8c53011c77935 (patch) | |
tree | 3055821a8dabab37c660fdc3b99309f970158b69 /src/net/messageout.cpp | |
parent | c0d5142d1ed98b62ad87603fa9d2620dce256bd7 (diff) | |
download | manaplus-78744020528ef6231e1606bbe2e8c53011c77935.tar.gz manaplus-78744020528ef6231e1606bbe2e8c53011c77935.tar.bz2 manaplus-78744020528ef6231e1606bbe2e8c53011c77935.tar.xz manaplus-78744020528ef6231e1606bbe2e8c53011c77935.zip |
add const to net classes.
Diffstat (limited to 'src/net/messageout.cpp')
-rw-r--r-- | src/net/messageout.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/messageout.cpp b/src/net/messageout.cpp index cb948cdd5..ab279020f 100644 --- a/src/net/messageout.cpp +++ b/src/net/messageout.cpp @@ -36,7 +36,7 @@ namespace Net { -MessageOut::MessageOut(int16_t id A_UNUSED): +MessageOut::MessageOut(const int16_t id A_UNUSED): mData(nullptr), mDataSize(0), mPos(0) @@ -45,7 +45,7 @@ MessageOut::MessageOut(int16_t id A_UNUSED): DEBUGLOG("MessageOut"); } -void MessageOut::writeInt8(int8_t value) +void MessageOut::writeInt8(const int8_t value) { DEBUGLOG("writeInt8: " + toStringPrint(static_cast<int>(value))); expand(1); |