summaryrefslogtreecommitdiff
path: root/src/net/tmwa
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-09 00:21:13 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-09 00:33:31 +0300
commitd9c62405db9a3f8bffaa5789bd63f59a65e29e3a (patch)
tree78c5417e3d2818f1844cd0a0730b6570eefbb9ef /src/net/tmwa
parent02215574dc2b24eeef9c4ab55776334856bfbaf5 (diff)
downloadplus-d9c62405db9a3f8bffaa5789bd63f59a65e29e3a.tar.gz
plus-d9c62405db9a3f8bffaa5789bd63f59a65e29e3a.tar.bz2
plus-d9c62405db9a3f8bffaa5789bd63f59a65e29e3a.tar.xz
plus-d9c62405db9a3f8bffaa5789bd63f59a65e29e3a.zip
improve messagein class.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r--src/net/tmwa/messagein.cpp6
-rw-r--r--src/net/tmwa/messagein.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/net/tmwa/messagein.cpp b/src/net/tmwa/messagein.cpp
index 3b774f158..3414b0091 100644
--- a/src/net/tmwa/messagein.cpp
+++ b/src/net/tmwa/messagein.cpp
@@ -36,7 +36,7 @@
namespace TmwAthena
{
-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<int>(value)));
+ DEBUGLOG("readInt16: " + toStringPrint(static_cast<int>(value)));
return value;
}
@@ -77,7 +77,7 @@ int32_t MessageIn::readInt32()
}
mPos += 4;
PacketCounters::incInBytes(4);
- DEBUGLOG(strprintf("readInt32: %u", static_cast<unsigned>(value)));
+ DEBUGLOG("readInt32:" + toStringPrint(value));
return value;
}
diff --git a/src/net/tmwa/messagein.h b/src/net/tmwa/messagein.h
index 8bd9641ab..a5db62334 100644
--- a/src/net/tmwa/messagein.h
+++ b/src/net/tmwa/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)