summaryrefslogtreecommitdiff
path: root/src/gui/widgets/whispertab.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <crush@themanaworld.org>2009-04-16 20:02:31 +0200
committerPhilipp Sehmisch <crush@themanaworld.org>2009-04-16 20:02:31 +0200
commit255c491375005abb1d2de22fa5aa1a821ac3a4f6 (patch)
treeb474bd4c0d5429ddd45d992015a7ed73a12a1830 /src/gui/widgets/whispertab.cpp
parent2fb36c5f27e2891bbd9968bdf9bbc7142ff28983 (diff)
parent69258182848b2781b0081d82453d33f42dd81679 (diff)
downloadmana-client-255c491375005abb1d2de22fa5aa1a821ac3a4f6.tar.gz
mana-client-255c491375005abb1d2de22fa5aa1a821ac3a4f6.tar.bz2
mana-client-255c491375005abb1d2de22fa5aa1a821ac3a4f6.tar.xz
mana-client-255c491375005abb1d2de22fa5aa1a821ac3a4f6.zip
Merge branch 'master' of git@gitorious.org:tmw/mainline
Diffstat (limited to 'src/gui/widgets/whispertab.cpp')
-rw-r--r--src/gui/widgets/whispertab.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gui/widgets/whispertab.cpp b/src/gui/widgets/whispertab.cpp
index 975cac94..87a88222 100644
--- a/src/gui/widgets/whispertab.cpp
+++ b/src/gui/widgets/whispertab.cpp
@@ -43,7 +43,8 @@ WhisperTab::~WhisperTab()
chatWindow->removeWhisper(mNick);
}
-void WhisperTab::handleInput(const std::string &msg) {
+void WhisperTab::handleInput(const std::string &msg)
+{
if (msg.length() == 0) {
chatLog(_("Cannot send empty chat!"), BY_SERVER, false);
return;
@@ -55,7 +56,7 @@ void WhisperTab::handleInput(const std::string &msg) {
msg.c_str()), BY_PLAYER, false);
}
-void WhisperTab::handleCommand(std::string msg)
+void WhisperTab::handleCommand(const std::string &msg)
{
if (msg == "close")
delete this;
@@ -68,7 +69,8 @@ void WhisperTab::showHelp()
chatLog(_("/close > Close the whisper tab"));
}
-bool WhisperTab::handleCommand(std::string type, std::string args)
+bool WhisperTab::handleCommand(const std::string &type,
+ const std::string &args)
{
if (type == "help")
{