From 566ae30ff94caf6c92fc7d64f021b567933f8a60 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 12 Sep 2014 17:07:09 +0300 Subject: fix code style. --- src/net/eathena/chathandler.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/net/eathena/chathandler.cpp') diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp index 031222e3e..14c0fcea5 100644 --- a/src/net/eathena/chathandler.cpp +++ b/src/net/eathena/chathandler.cpp @@ -252,9 +252,10 @@ void ChatHandler::createChatRoom(const std::string &title, const bool isPublic) { MessageOut outMsg(CMSG_CREAYE_CHAT_ROOM); - outMsg.writeInt16(password.size() + title.size() + 5, "len"); + outMsg.writeInt16(static_cast( + password.size() + title.size() + 5), "len"); outMsg.writeInt16(static_cast(limit), "limit"); - outMsg.writeInt8(isPublic ? 1 : 0, "public"); + outMsg.writeInt8(static_cast(isPublic ? 1 : 0), "public"); outMsg.writeString(password, 8, "password"); outMsg.writeString(title, 36, "title"); } @@ -312,7 +313,7 @@ void ChatHandler::processChat(Net::MessageIn &msg) void ChatHandler::processGmChat2(Net::MessageIn &msg) { - int chatMsgLength = msg.readInt16("len") - 16; + const int chatMsgLength = msg.readInt16("len") - 16; msg.readInt32("font color"); msg.readInt16("font type"); msg.readInt16("font size"); -- cgit v1.2.3-60-g2f50