summaryrefslogtreecommitdiff
path: root/src/net/eathena/chathandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-26 13:46:48 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-26 13:46:48 +0300
commit5aa20a895f64dd38f0c7ad9e79c1b2dcb0c76474 (patch)
tree423ae260404dcbff3143cb9d733b0aaf78a093a4 /src/net/eathena/chathandler.cpp
parentfede4529512844d69f1812133719029392e8e0aa (diff)
downloadplus-5aa20a895f64dd38f0c7ad9e79c1b2dcb0c76474.tar.gz
plus-5aa20a895f64dd38f0c7ad9e79c1b2dcb0c76474.tar.bz2
plus-5aa20a895f64dd38f0c7ad9e79c1b2dcb0c76474.tar.xz
plus-5aa20a895f64dd38f0c7ad9e79c1b2dcb0c76474.zip
add restrict into chathandler.
Diffstat (limited to 'src/net/eathena/chathandler.cpp')
-rw-r--r--src/net/eathena/chathandler.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp
index 53b98f6a9..331b2b630 100644
--- a/src/net/eathena/chathandler.cpp
+++ b/src/net/eathena/chathandler.cpp
@@ -92,8 +92,8 @@ void ChatHandler::handleMessage(Net::MessageIn &msg)
}
}
-void ChatHandler::talk(const std::string &text,
- const std::string &channel A_UNUSED) const
+void ChatHandler::talk(const std::string &restrict text,
+ const std::string &restrict channel A_UNUSED) const
{
if (!player_node)
return;
@@ -114,8 +114,8 @@ void ChatHandler::talkRaw(const std::string &mes) const
outMsg.writeString(mes, static_cast<int>(mes.length()));
}
-void ChatHandler::privateMessage(const std::string &recipient,
- const std::string &text)
+void ChatHandler::privateMessage(const std::string &restrict recipient,
+ const std::string &restrict text)
{
MessageOut outMsg(CMSG_CHAT_WHISPER);
outMsg.writeInt16(static_cast<int16_t>(text.length() + 28));
@@ -165,7 +165,8 @@ void ChatHandler::sendRaw(const std::string &args) const
delete outMsg;
}
-void ChatHandler::processRaw(MessageOut &outMsg, const std::string &line)
+void ChatHandler::processRaw(MessageOut &restrict outMsg,
+ const std::string &restrict line)
{
size_t pos = line.find(":");
if (pos == std::string::npos)