diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-04-28 13:47:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-04-28 13:47:32 +0300 |
commit | fbcfa27edf518835976e140ec160db009186bc16 (patch) | |
tree | 52e2999ffe9ba3971f2b4334be7c8c42754a7e03 /src/gui/chatwindow.cpp | |
parent | caf62e4d1c039f8d4d33bfd05f476890fdc79fcf (diff) | |
download | plus-fbcfa27edf518835976e140ec160db009186bc16.tar.gz plus-fbcfa27edf518835976e140ec160db009186bc16.tar.bz2 plus-fbcfa27edf518835976e140ec160db009186bc16.tar.xz plus-fbcfa27edf518835976e140ec160db009186bc16.zip |
Fix code style and add some checks.
Diffstat (limited to 'src/gui/chatwindow.cpp')
-rw-r--r-- | src/gui/chatwindow.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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<std::string>::const_iterator it = tab->getRows().begin(), - it_end = tab->getRows().end(); it != it_end; ++it, f++) + for (std::list<std::string>::const_iterator + it = tab->getRows().begin(), it_end = tab->getRows().end(); + it != it_end; ++it, f++) { if (f == mChatHistoryIndex) mChatInput->setText(*it); |