summaryrefslogtreecommitdiff
path: root/src/guildmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-29 23:40:41 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-29 23:40:41 +0300
commit1feb7f7edc5f8f383e594b256ef4cab0fae75b99 (patch)
tree68fe26fdd1ef25645deef894c296b6fbc80b0e13 /src/guildmanager.cpp
parent41044107cc0a17125ebd806c9934b6eb636dafe6 (diff)
downloadmanaplus-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.tar.gz
manaplus-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.tar.bz2
manaplus-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.tar.xz
manaplus-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.zip
Add const to more classes.
Diffstat (limited to 'src/guildmanager.cpp')
-rw-r--r--src/guildmanager.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/guildmanager.cpp b/src/guildmanager.cpp
index f1c908807..29b438fea 100644
--- a/src/guildmanager.cpp
+++ b/src/guildmanager.cpp
@@ -116,7 +116,7 @@ void GuildManager::chat(std::string msg)
mTab->chatLog(player_node->getName(), msg);
}
-void GuildManager::getNames(StringVect &names)
+void GuildManager::getNames(StringVect &names) const
{
const Guild *const guild = createGuild();
if (guild)
@@ -428,22 +428,22 @@ bool GuildManager::process(std::string msg)
return false;
}
-void GuildManager::kick(std::string msg)
+void GuildManager::kick(std::string msg) const
{
send("!remove " + msg);
}
-void GuildManager::invite(std::string msg)
+void GuildManager::invite(std::string msg) const
{
send("!invite " + msg);
}
-void GuildManager::leave()
+void GuildManager::leave() const
{
send("!leave");
}
-void GuildManager::notice(std::string msg)
+void GuildManager::notice(std::string msg) const
{
if (msg.empty())
send("!removemotd");
@@ -461,7 +461,7 @@ void GuildManager::clear() const
}
}
-void GuildManager::inviteResponse(const bool response)
+void GuildManager::inviteResponse(const bool response) const
{
if (response)
send("yes");