summaryrefslogtreecommitdiff
path: root/src/gui/chatwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-18 19:46:23 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-18 21:52:08 +0300
commitc0d5142d1ed98b62ad87603fa9d2620dce256bd7 (patch)
tree6acc4c089999353ef39c83c3bef34bbf89dbfdd3 /src/gui/chatwindow.cpp
parente85c6227064c905945a4d49a5e11a0078243a1ac (diff)
downloadmanaverse-c0d5142d1ed98b62ad87603fa9d2620dce256bd7.tar.gz
manaverse-c0d5142d1ed98b62ad87603fa9d2620dce256bd7.tar.bz2
manaverse-c0d5142d1ed98b62ad87603fa9d2620dce256bd7.tar.xz
manaverse-c0d5142d1ed98b62ad87603fa9d2620dce256bd7.zip
add consts in gui classes.
Diffstat (limited to 'src/gui/chatwindow.cpp')
-rw-r--r--src/gui/chatwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/chatwindow.cpp b/src/gui/chatwindow.cpp
index c9690cb86..91cf2417b 100644
--- a/src/gui/chatwindow.cpp
+++ b/src/gui/chatwindow.cpp
@@ -653,7 +653,7 @@ void ChatWindow::chatInput(const std::string &message) const
Game::instance()->setValidSpeed();
}
-void ChatWindow::localChatInput(const std::string &msg)
+void ChatWindow::localChatInput(const std::string &msg) const
{
if (localChatTab)
localChatTab->chatInput(msg);
@@ -858,7 +858,7 @@ void ChatWindow::keyPressed(gcn::KeyEvent &event)
else if (actionId == static_cast<int>(Input::KEY_CHAT_NEXT_HISTORY) &&
mChatInput->isVisible())
{
- ChatTab *const tab = getFocused();
+ const ChatTab *const tab = getFocused();
if (tab && tab->hasRows())
{
const size_t &tabSize = tab->getRows().size();