From 78744020528ef6231e1606bbe2e8c53011c77935 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 18 Sep 2013 21:52:15 +0300 Subject: add const to net classes. --- src/net/messageout.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/net/messageout.cpp') 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(value))); expand(1); -- cgit v1.2.3-70-g09d2