diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-22 01:22:38 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-22 01:22:38 +0300 |
commit | f95e58406341d5672048ed9dca293beea9ee6b2c (patch) | |
tree | 49bb3f3672bbd152f7ea962815d24ef8cdfb07b0 /src/net/eathena | |
parent | f3ac812e2079eac53c1a9db56541d7103bd14a61 (diff) | |
download | manaplus-f95e58406341d5672048ed9dca293beea9ee6b2c.tar.gz manaplus-f95e58406341d5672048ed9dca293beea9ee6b2c.tar.bz2 manaplus-f95e58406341d5672048ed9dca293beea9ee6b2c.tar.xz manaplus-f95e58406341d5672048ed9dca293beea9ee6b2c.zip |
Add more missing consts.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/messagein.cpp | 2 | ||||
-rw-r--r-- | src/net/eathena/messagein.h | 2 | ||||
-rw-r--r-- | src/net/eathena/messageout.cpp | 2 | ||||
-rw-r--r-- | src/net/eathena/messageout.h | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/net/eathena/messagein.cpp b/src/net/eathena/messagein.cpp index fa19465a3..3a71e0c76 100644 --- a/src/net/eathena/messagein.cpp +++ b/src/net/eathena/messagein.cpp @@ -49,7 +49,7 @@ void MessageIn::postInit(const char *const str) readInt16(str); } -uint16_t MessageIn::readId() +uint16_t MessageIn::readId() const { int16_t value = -1; if (mPos + 2 <= mLength) diff --git a/src/net/eathena/messagein.h b/src/net/eathena/messagein.h index 218c3c3fb..da5f57d7d 100644 --- a/src/net/eathena/messagein.h +++ b/src/net/eathena/messagein.h @@ -57,7 +57,7 @@ class MessageIn final : public Net::MessageIn BeingId readBeingId(const char *const str) override final; - uint16_t readId(); + uint16_t readId() const; }; } // namespace EAthena diff --git a/src/net/eathena/messageout.cpp b/src/net/eathena/messageout.cpp index 83be120e5..a20d924c9 100644 --- a/src/net/eathena/messageout.cpp +++ b/src/net/eathena/messageout.cpp @@ -43,7 +43,7 @@ MessageOut::MessageOut(const int16_t id) : mData = mNetwork->mOutBuffer + CAST_SIZE(mNetwork->mOutSize); } -void MessageOut::expand(const size_t bytes) +void MessageOut::expand(const size_t bytes) const { mNetwork->mOutSize += CAST_U32(bytes); PacketCounters::incOutBytes(CAST_S32(bytes)); diff --git a/src/net/eathena/messageout.h b/src/net/eathena/messageout.h index 971a4be97..83f9fbe7f 100644 --- a/src/net/eathena/messageout.h +++ b/src/net/eathena/messageout.h @@ -70,7 +70,7 @@ class MessageOut final : public Net::MessageOut { mPos = 0; } private: - void expand(const size_t size) override final; + void expand(const size_t size) const override final; Network *mNetwork; }; |