summaryrefslogtreecommitdiff
path: root/src/net/ea/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-31 00:55:36 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-31 00:55:36 +0300
commitecd8811f15034a6c895a81c0153a4b154dbc1061 (patch)
treec451e027766b6e455033eca468e383de95a81fb0 /src/net/ea/gui
parentd4f7f4f688c3660440e0ac0d752ec9db036cdf59 (diff)
downloadplus-ecd8811f15034a6c895a81c0153a4b154dbc1061.tar.gz
plus-ecd8811f15034a6c895a81c0153a4b154dbc1061.tar.bz2
plus-ecd8811f15034a6c895a81c0153a4b154dbc1061.tar.xz
plus-ecd8811f15034a6c895a81c0153a4b154dbc1061.zip
Improve chattab class.
Diffstat (limited to 'src/net/ea/gui')
-rw-r--r--src/net/ea/gui/guildtab.cpp4
-rw-r--r--src/net/ea/gui/guildtab.h4
-rw-r--r--src/net/ea/gui/partytab.cpp4
-rw-r--r--src/net/ea/gui/partytab.h4
4 files changed, 8 insertions, 8 deletions
diff --git a/src/net/ea/gui/guildtab.cpp b/src/net/ea/gui/guildtab.cpp
index aa89309b1..38a384629 100644
--- a/src/net/ea/gui/guildtab.cpp
+++ b/src/net/ea/gui/guildtab.cpp
@@ -158,13 +158,13 @@ void GuildTab::getAutoCompleteList(StringVect &names) const
names.push_back("/notice ");
}
-void GuildTab::saveToLogFile(std::string &msg)
+void GuildTab::saveToLogFile(const std::string &msg)
{
if (chatLogger)
chatLogger->log("#Guild", msg);
}
-void GuildTab::playNewMessageSound()
+void GuildTab::playNewMessageSound() const
{
soundManager.playGuiSound(SOUND_GUILD);
}
diff --git a/src/net/ea/gui/guildtab.h b/src/net/ea/gui/guildtab.h
index 28b689f79..1fe57437d 100644
--- a/src/net/ea/gui/guildtab.h
+++ b/src/net/ea/gui/guildtab.h
@@ -45,12 +45,12 @@ class GuildTab : public ChatTab, public ConfigListener
void showHelp() override;
- void saveToLogFile(std::string &msg) override;
+ void saveToLogFile(const std::string &msg) override;
int getType() const override A_WARN_UNUSED
{ return ChatTab::TAB_GUILD; }
- void playNewMessageSound() override;
+ void playNewMessageSound() const override;
void optionChanged(const std::string &value) override;
diff --git a/src/net/ea/gui/partytab.cpp b/src/net/ea/gui/partytab.cpp
index 5b3184038..78105d3ad 100644
--- a/src/net/ea/gui/partytab.cpp
+++ b/src/net/ea/gui/partytab.cpp
@@ -274,13 +274,13 @@ void PartyTab::getAutoCompleteList(StringVect &names) const
p->getNames(names);
}
-void PartyTab::saveToLogFile(std::string &msg)
+void PartyTab::saveToLogFile(const std::string &msg)
{
if (chatLogger)
chatLogger->log("#Party", msg);
}
-void PartyTab::playNewMessageSound()
+void PartyTab::playNewMessageSound() const
{
soundManager.playGuiSound(SOUND_GUILD);
}
diff --git a/src/net/ea/gui/partytab.h b/src/net/ea/gui/partytab.h
index 983e6efb2..16c9e8a3f 100644
--- a/src/net/ea/gui/partytab.h
+++ b/src/net/ea/gui/partytab.h
@@ -48,9 +48,9 @@ class PartyTab : public ChatTab
int getType() const override A_WARN_UNUSED
{ return ChatTab::TAB_PARTY; }
- void saveToLogFile(std::string &msg) override;
+ void saveToLogFile(const std::string &msg) override;
- void playNewMessageSound() override;
+ void playNewMessageSound() const override;
protected:
void handleInput(const std::string &msg) override;