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/eathena/messagein.cpp | 6 +++--- src/net/eathena/messagein.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/net/eathena') diff --git a/src/net/eathena/messagein.cpp b/src/net/eathena/messagein.cpp index 923be96af..cb5f2ecfd 100644 --- a/src/net/eathena/messagein.cpp +++ b/src/net/eathena/messagein.cpp @@ -36,7 +36,7 @@ namespace EAthena { -MessageIn::MessageIn(const char *data, unsigned int length): +MessageIn::MessageIn(const char *const data, const unsigned int length) : Net::MessageIn(data, length) { // Read the message ID @@ -58,7 +58,7 @@ int16_t MessageIn::readInt16() } mPos += 2; PacketCounters::incInBytes(2); - DEBUGLOG("readInt16: " + toString(static_cast(value))); + DEBUGLOG("readInt16: " + toStringPrint(static_cast(value))); return value; } @@ -77,7 +77,7 @@ int32_t MessageIn::readInt32() } mPos += 4; PacketCounters::incInBytes(4); - DEBUGLOG(strprintf("readInt32: %u", value)); + DEBUGLOG("readInt32: " + toStringPrint(value)); return value; } diff --git a/src/net/eathena/messagein.h b/src/net/eathena/messagein.h index 47e3b3004..7279d8dcf 100644 --- a/src/net/eathena/messagein.h +++ b/src/net/eathena/messagein.h @@ -44,7 +44,7 @@ class MessageIn final : public Net::MessageIn /** * Constructor. */ - MessageIn(const char *data, unsigned int length); + MessageIn(const char *const data, const unsigned int length); A_DELETE_COPY(MessageIn) -- cgit v1.2.3-70-g09d2