summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-05-24 21:31:00 +0200
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-05-24 21:37:38 +0200
commitcc28b48adcc8ef3b584312e598035c34384dcf78 (patch)
tree37987edf34e2c916def7ee2abc634f5ad0aec7da /src/gui/widgets
parentc354af888779c9038cedf64c1502574eb8b29399 (diff)
downloadmana-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/widgets')
-rw-r--r--src/gui/widgets/chattab.cpp3
-rw-r--r--src/gui/widgets/chattab.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/widgets/chattab.cpp b/src/gui/widgets/chattab.cpp
index ad0911c9..d2fa33b8 100644
--- a/src/gui/widgets/chattab.cpp
+++ b/src/gui/widgets/chattab.cpp
@@ -203,8 +203,9 @@ void ChatTab::chatLog(const std::string &nick, const std::string &msg)
false);
}
-void ChatTab::chatInput(std::string &msg)
+void ChatTab::chatInput(const std::string &message)
{
+ std::string msg = message;
trim(msg);
if (msg.empty())
diff --git a/src/gui/widgets/chattab.h b/src/gui/widgets/chattab.h
index dc0d3047..4cb6a58f 100644
--- a/src/gui/widgets/chattab.h
+++ b/src/gui/widgets/chattab.h
@@ -77,7 +77,7 @@ class ChatTab : public Tab
*
* @param msg The message text which is to be sent.
*/
- void chatInput(std::string &msg);
+ void chatInput(const std::string &msg);
/**
* Scrolls the chat window