summaryrefslogtreecommitdiff
path: root/src/gui/chat.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-15 22:22:33 +0200
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-15 22:36:14 +0200
commit2a3f16f5673e6482e422a65f6f23f958dd78955f (patch)
tree63f81e0fc00e9a2f29bfe3ca0e13e2351994de0b /src/gui/chat.cpp
parent1b44c6d73784c0f222c3d1f09214936acb5561f7 (diff)
downloadmana-client-2a3f16f5673e6482e422a65f6f23f958dd78955f.tar.gz
mana-client-2a3f16f5673e6482e422a65f6f23f958dd78955f.tar.bz2
mana-client-2a3f16f5673e6482e422a65f6f23f958dd78955f.tar.xz
mana-client-2a3f16f5673e6482e422a65f6f23f958dd78955f.zip
Assorted random cleanups
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r--src/gui/chat.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp
index 7ad727ff..14a2dd49 100644
--- a/src/gui/chat.cpp
+++ b/src/gui/chat.cpp
@@ -412,9 +412,10 @@ void ChatWindow::setRecordingFile(const std::string &msg)
mRecorder->setRecordingFile(msg);
}
-void ChatWindow::whisper(std::string nick, std::string mes, bool own)
+void ChatWindow::whisper(const std::string &nick, std::string mes, bool own)
{
- if (mes.length() == 0) return;
+ if (mes.length() == 0)
+ return;
std::string playerName = player_node->getName();
std::string tempNick = nick;
@@ -453,7 +454,7 @@ void ChatWindow::whisper(std::string nick, std::string mes, bool own)
}
}
-ChatTab *ChatWindow::addWhisperTab(std::string nick)
+ChatTab *ChatWindow::addWhisperTab(const std::string &nick)
{
std::string playerName = player_node->getName();
std::string tempNick = nick;