From a69a87c5a81ddbf25a25c5549259da550d207bda Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 23 Jun 2012 02:46:01 +0300 Subject: Improve a bit iterators again. --- src/guichan/widgets/tabbedarea.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/guichan/widgets/tabbedarea.cpp') diff --git a/src/guichan/widgets/tabbedarea.cpp b/src/guichan/widgets/tabbedarea.cpp index fb6619bed..a4179db5e 100644 --- a/src/guichan/widgets/tabbedarea.cpp +++ b/src/guichan/widgets/tabbedarea.cpp @@ -160,8 +160,7 @@ namespace gcn int TabbedArea::getSelectedTabIndex() const { - unsigned int i; - for (i = 0; i < mTabs.size(); i++) + for (unsigned int i = 0; i < mTabs.size(); i++) { if (mTabs[i].first == mSelectedTab) return i; -- cgit v1.2.3-70-g09d2