summaryrefslogtreecommitdiff
path: root/src/net/tmwa/guildhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-26 13:52:40 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-26 13:52:40 +0300
commita2971c05237aabe5b3d4027c7b6c2ffada6e9607 (patch)
tree2046f99c69f9f1d0557282641a984ed31a7e41aa /src/net/tmwa/guildhandler.cpp
parent5aa20a895f64dd38f0c7ad9e79c1b2dcb0c76474 (diff)
downloadmv-a2971c05237aabe5b3d4027c7b6c2ffada6e9607.tar.gz
mv-a2971c05237aabe5b3d4027c7b6c2ffada6e9607.tar.bz2
mv-a2971c05237aabe5b3d4027c7b6c2ffada6e9607.tar.xz
mv-a2971c05237aabe5b3d4027c7b6c2ffada6e9607.zip
add restrict into guildhandler.
Diffstat (limited to 'src/net/tmwa/guildhandler.cpp')
-rw-r--r--src/net/tmwa/guildhandler.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/net/tmwa/guildhandler.cpp b/src/net/tmwa/guildhandler.cpp
index 60747685d..299668cc1 100644
--- a/src/net/tmwa/guildhandler.cpp
+++ b/src/net/tmwa/guildhandler.cpp
@@ -255,8 +255,8 @@ void GuildHandler::leave(const int guildId) const
msg.writeString("", 40); // Message
}
-void GuildHandler::kick(const GuildMember *const member,
- const std::string &reason) const
+void GuildHandler::kick(const GuildMember *restrict const member,
+ const std::string &restrict reason) const
{
if (!member || !member->getGuild())
return;
@@ -319,8 +319,9 @@ void GuildHandler::changeMemberPostion(const GuildMember *const member,
msg.writeInt32(level); // pos
}
-void GuildHandler::changeNotice(const int guildId, const std::string &msg1,
- const std::string &msg2) const
+void GuildHandler::changeNotice(const int guildId,
+ const std::string &restrict msg1,
+ const std::string &restrict msg2) const
{
MessageOut msg(CMSG_GUILD_CHANGE_NOTICE);
msg.writeInt32(guildId);