summaryrefslogtreecommitdiff
path: root/src/net/tmwa
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-22 01:22:38 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-22 01:22:38 +0300
commitf95e58406341d5672048ed9dca293beea9ee6b2c (patch)
tree49bb3f3672bbd152f7ea962815d24ef8cdfb07b0 /src/net/tmwa
parentf3ac812e2079eac53c1a9db56541d7103bd14a61 (diff)
downloadmanaverse-f95e58406341d5672048ed9dca293beea9ee6b2c.tar.gz
manaverse-f95e58406341d5672048ed9dca293beea9ee6b2c.tar.bz2
manaverse-f95e58406341d5672048ed9dca293beea9ee6b2c.tar.xz
manaverse-f95e58406341d5672048ed9dca293beea9ee6b2c.zip
Add more missing consts.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r--src/net/tmwa/messagein.cpp2
-rw-r--r--src/net/tmwa/messagein.h2
-rw-r--r--src/net/tmwa/messageout.cpp2
-rw-r--r--src/net/tmwa/messageout.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/net/tmwa/messagein.cpp b/src/net/tmwa/messagein.cpp
index c8cf350e7..375e973f5 100644
--- a/src/net/tmwa/messagein.cpp
+++ b/src/net/tmwa/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/tmwa/messagein.h b/src/net/tmwa/messagein.h
index bbdab6c86..14c6b8156 100644
--- a/src/net/tmwa/messagein.h
+++ b/src/net/tmwa/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 TmwAthena
diff --git a/src/net/tmwa/messageout.cpp b/src/net/tmwa/messageout.cpp
index c0ac1ef03..82a67e924 100644
--- a/src/net/tmwa/messageout.cpp
+++ b/src/net/tmwa/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/tmwa/messageout.h b/src/net/tmwa/messageout.h
index dd4abc569..b0dd2b1b0 100644
--- a/src/net/tmwa/messageout.h
+++ b/src/net/tmwa/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;
};