diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-03-27 07:45:41 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-03-27 07:45:41 -0600 |
commit | e480ad5d269ca8dcd200397f7e6157b3e46c5c02 (patch) | |
tree | 45dba73954b814b5cc9619f873299e3fc8366a67 /src/gui/widgets/whispertab.cpp | |
parent | 31c28bbd0349475079ed2111c32b3cd07400554e (diff) | |
download | mana-e480ad5d269ca8dcd200397f7e6157b3e46c5c02.tar.gz mana-e480ad5d269ca8dcd200397f7e6157b3e46c5c02.tar.bz2 mana-e480ad5d269ca8dcd200397f7e6157b3e46c5c02.tar.xz mana-e480ad5d269ca8dcd200397f7e6157b3e46c5c02.zip |
Add some const to the chat tabs
Diffstat (limited to 'src/gui/widgets/whispertab.cpp')
-rw-r--r-- | src/gui/widgets/whispertab.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/whispertab.cpp b/src/gui/widgets/whispertab.cpp index 8af8d427..1c63d1c9 100644 --- a/src/gui/widgets/whispertab.cpp +++ b/src/gui/widgets/whispertab.cpp @@ -58,7 +58,7 @@ WhisperTab::~WhisperTab() chatWindow->removeWhisper(mNick); } -void WhisperTab::sendChat(std::string &msg) { +void WhisperTab::sendChat(const std::string &msg) { if (msg.length() == 0) { chatLog(_("Cannot send empty chat!"), BY_SERVER, false); return; @@ -78,7 +78,7 @@ void WhisperTab::sendChat(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; |