From fbcfa27edf518835976e140ec160db009186bc16 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 28 Apr 2012 13:47:32 +0300 Subject: Fix code style and add some checks. --- src/gui/chatwindow.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/gui/chatwindow.cpp') diff --git a/src/gui/chatwindow.cpp b/src/gui/chatwindow.cpp index c33478cc5..bc8bd1f83 100644 --- a/src/gui/chatwindow.cpp +++ b/src/gui/chatwindow.cpp @@ -858,8 +858,9 @@ void ChatWindow::keyPressed(gcn::KeyEvent &event) } unsigned int f = 0; - for (std::list::const_iterator it = tab->getRows().begin(), - it_end = tab->getRows().end(); it != it_end; ++it, f++) + for (std::list::const_iterator + it = tab->getRows().begin(), it_end = tab->getRows().end(); + it != it_end; ++it, f++) { if (f == mChatHistoryIndex) mChatInput->setText(*it); -- cgit v1.2.3-70-g09d2