diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-05-24 21:31:00 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-05-24 21:37:38 +0200 |
commit | cc28b48adcc8ef3b584312e598035c34384dcf78 (patch) | |
tree | 37987edf34e2c916def7ee2abc634f5ad0aec7da /src/gui/chat.cpp | |
parent | c354af888779c9038cedf64c1502574eb8b29399 (diff) | |
download | mana-client-cc28b48adcc8ef3b584312e598035c34384dcf78.tar.gz mana-client-cc28b48adcc8ef3b584312e598035c34384dcf78.tar.bz2 mana-client-cc28b48adcc8ef3b584312e598035c34384dcf78.tar.xz mana-client-cc28b48adcc8ef3b584312e598035c34384dcf78.zip |
Made some parameters const references like they should be
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r-- | src/gui/chat.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp index 73af83ff..1ce1b77c 100644 --- a/src/gui/chat.cpp +++ b/src/gui/chat.cpp @@ -297,7 +297,7 @@ void ChatWindow::removeWhisper(const std::string &nick) mWhispers.erase(tempNick); } -void ChatWindow::chatInput(std::string &msg) +void ChatWindow::chatInput(const std::string &msg) { ChatTab *tab = getFocused(); tab->chatInput(msg); @@ -432,7 +432,8 @@ void ChatWindow::setRecordingFile(const std::string &msg) mRecorder->setRecordingFile(msg); } -void ChatWindow::whisper(const std::string &nick, std::string mes, bool own) +void ChatWindow::whisper(const std::string &nick, + const std::string &mes, bool own) { if (mes.empty()) return; @@ -471,7 +472,9 @@ void ChatWindow::whisper(const std::string &nick, std::string mes, bool own) nick.c_str(), mes.c_str()), BY_PLAYER); } else + { localChatTab->chatLog(nick + " : " + mes, ACT_WHISPER, false); + } } } |