summaryrefslogtreecommitdiff
path: root/src/net/eathena/charserverhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-20 21:19:59 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-20 21:19:59 +0300
commita9f6959a96395edc64ff57bf5ba1d75cca8e86c3 (patch)
treef6975bea7e87380ee7d063ccfb2efbc835341c91 /src/net/eathena/charserverhandler.cpp
parent3e8fecc9a62afff0054fa0fa23af86c8ef15a1c9 (diff)
downloadmv-a9f6959a96395edc64ff57bf5ba1d75cca8e86c3.tar.gz
mv-a9f6959a96395edc64ff57bf5ba1d75cca8e86c3.tar.bz2
mv-a9f6959a96395edc64ff57bf5ba1d75cca8e86c3.tar.xz
mv-a9f6959a96395edc64ff57bf5ba1d75cca8e86c3.zip
Add missing const in net directory.
Diffstat (limited to 'src/net/eathena/charserverhandler.cpp')
-rw-r--r--src/net/eathena/charserverhandler.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/net/eathena/charserverhandler.cpp b/src/net/eathena/charserverhandler.cpp
index ce84840ca..328546909 100644
--- a/src/net/eathena/charserverhandler.cpp
+++ b/src/net/eathena/charserverhandler.cpp
@@ -57,7 +57,7 @@ CharServerHandler::CharServerHandler() :
charServerHandler = this;
}
-void CharServerHandler::chooseCharacter(Net::Character *const character)
+void CharServerHandler::chooseCharacter(Net::Character *const character) const
{
if (!character)
return;
@@ -100,7 +100,7 @@ void CharServerHandler::newCharacter(const std::string &name, const int slot,
}
void CharServerHandler::deleteCharacter(Net::Character *const character,
- const std::string &email)
+ const std::string &email) const
{
if (!character)
return;
@@ -122,7 +122,7 @@ void CharServerHandler::switchCharacter() const
outMsg.writeInt8(1, "flag");
}
-void CharServerHandler::connect()
+void CharServerHandler::connect() const
{
const Token &token =
static_cast<LoginHandler*>(loginHandler)->getToken();
@@ -144,6 +144,7 @@ void CharServerHandler::connect()
}
void CharServerHandler::setCharCreateDialog(CharCreateDialog *const window)
+ const
{
mCharCreateDialog = window;
@@ -158,7 +159,7 @@ void CharServerHandler::setCharCreateDialog(CharCreateDialog *const window)
mCharCreateDialog->setDefaultGender(token.sex);
}
-void CharServerHandler::setNewPincode(const std::string &pin A_UNUSED)
+void CharServerHandler::setNewPincode(const std::string &pin A_UNUSED) const
{
// here need ecript pin with mPinSeed and pin values.
@@ -168,7 +169,7 @@ void CharServerHandler::setNewPincode(const std::string &pin A_UNUSED)
}
void CharServerHandler::renameCharacter(const BeingId id,
- const std::string &newName)
+ const std::string &newName) const
{
createOutPacket(CMSG_CHAR_CHECK_RENAME);
CharServerRecv::mRenameId = id;
@@ -177,7 +178,8 @@ void CharServerHandler::renameCharacter(const BeingId id,
outMsg.writeString(newName, 24, "name");
}
-void CharServerHandler::changeSlot(const int oldSlot, const int newSlot)
+void CharServerHandler::changeSlot(const int oldSlot,
+ const int newSlot) const
{
createOutPacket(CMSG_CHAR_CHANGE_SLOT);
outMsg.writeInt16(CAST_S16(oldSlot), "old slot");