From ae550d179c25e149f7e8a8d70011b364fb0d85d6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 7 Apr 2013 14:57:08 +0300 Subject: some fixes after auto check. --- src/gui/chatwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/chatwindow.cpp') diff --git a/src/gui/chatwindow.cpp b/src/gui/chatwindow.cpp index 0bc3b9edc..88c9936fe 100644 --- a/src/gui/chatwindow.cpp +++ b/src/gui/chatwindow.cpp @@ -883,7 +883,7 @@ void ChatWindow::keyPressed(gcn::KeyEvent &event) ChatTab *const tab = getFocused(); if (tab && tab->hasRows()) { - const size_t tabSize = tab->getRows().size(); + const size_t &tabSize = tab->getRows().size(); if (mChatHistoryIndex + 1 < tabSize) { mChatHistoryIndex ++; -- cgit v1.2.3-60-g2f50