summaryrefslogtreecommitdiff
path: root/src/net/ea/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-18 19:46:23 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-18 21:52:08 +0300
commitc0d5142d1ed98b62ad87603fa9d2620dce256bd7 (patch)
tree6acc4c089999353ef39c83c3bef34bbf89dbfdd3 /src/net/ea/gui
parente85c6227064c905945a4d49a5e11a0078243a1ac (diff)
downloadmv-c0d5142d1ed98b62ad87603fa9d2620dce256bd7.tar.gz
mv-c0d5142d1ed98b62ad87603fa9d2620dce256bd7.tar.bz2
mv-c0d5142d1ed98b62ad87603fa9d2620dce256bd7.tar.xz
mv-c0d5142d1ed98b62ad87603fa9d2620dce256bd7.zip
add consts in gui classes.
Diffstat (limited to 'src/net/ea/gui')
-rw-r--r--src/net/ea/gui/guildtab.cpp2
-rw-r--r--src/net/ea/gui/guildtab.h2
-rw-r--r--src/net/ea/gui/partytab.cpp2
-rw-r--r--src/net/ea/gui/partytab.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/net/ea/gui/guildtab.cpp b/src/net/ea/gui/guildtab.cpp
index 1cfdd7b90..86f0e65a6 100644
--- a/src/net/ea/gui/guildtab.cpp
+++ b/src/net/ea/gui/guildtab.cpp
@@ -155,7 +155,7 @@ void GuildTab::getAutoCompleteList(StringVect &names) const
names.push_back("/notice ");
}
-void GuildTab::saveToLogFile(const std::string &msg)
+void GuildTab::saveToLogFile(const std::string &msg) const
{
if (chatLogger)
chatLogger->log("#Guild", msg);
diff --git a/src/net/ea/gui/guildtab.h b/src/net/ea/gui/guildtab.h
index 1fe57437d..f5230615f 100644
--- a/src/net/ea/gui/guildtab.h
+++ b/src/net/ea/gui/guildtab.h
@@ -45,7 +45,7 @@ class GuildTab : public ChatTab, public ConfigListener
void showHelp() override;
- void saveToLogFile(const std::string &msg) override;
+ void saveToLogFile(const std::string &msg) const override;
int getType() const override A_WARN_UNUSED
{ return ChatTab::TAB_GUILD; }
diff --git a/src/net/ea/gui/partytab.cpp b/src/net/ea/gui/partytab.cpp
index 5cca1d54a..2b93793d3 100644
--- a/src/net/ea/gui/partytab.cpp
+++ b/src/net/ea/gui/partytab.cpp
@@ -275,7 +275,7 @@ void PartyTab::getAutoCompleteList(StringVect &names) const
p->getNames(names);
}
-void PartyTab::saveToLogFile(const std::string &msg)
+void PartyTab::saveToLogFile(const std::string &msg) const
{
if (chatLogger)
chatLogger->log("#Party", msg);
diff --git a/src/net/ea/gui/partytab.h b/src/net/ea/gui/partytab.h
index 1988df4e8..0f6613094 100644
--- a/src/net/ea/gui/partytab.h
+++ b/src/net/ea/gui/partytab.h
@@ -48,7 +48,7 @@ class PartyTab : public ChatTab, public ConfigListener
int getType() const override A_WARN_UNUSED
{ return ChatTab::TAB_PARTY; }
- void saveToLogFile(const std::string &msg) override;
+ void saveToLogFile(const std::string &msg) const override;
void playNewMessageSound() const override;