From e480ad5d269ca8dcd200397f7e6157b3e46c5c02 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Fri, 27 Mar 2009 07:45:41 -0600 Subject: Add some const to the chat tabs --- src/gui/widgets/whispertab.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets/whispertab.cpp') 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; -- cgit v1.2.3-70-g09d2