From c0d5142d1ed98b62ad87603fa9d2620dce256bd7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 18 Sep 2013 19:46:23 +0300 Subject: add consts in gui classes. --- src/gui/chatwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/chatwindow.cpp') 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(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(); -- cgit v1.2.3-70-g09d2