From 62ffd2023d9073e452fe2e2f50cf6b2f11224d6f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 21 Aug 2012 22:44:44 +0300 Subject: next code style changes. --- src/guichan/widgets/tabbedarea.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/guichan/widgets/tabbedarea.cpp') diff --git a/src/guichan/widgets/tabbedarea.cpp b/src/guichan/widgets/tabbedarea.cpp index 487549b6a..141bbf96e 100644 --- a/src/guichan/widgets/tabbedarea.cpp +++ b/src/guichan/widgets/tabbedarea.cpp @@ -160,7 +160,8 @@ namespace gcn int TabbedArea::getSelectedTabIndex() const { - for (unsigned int i = 0, sz = mTabs.size(); i < sz; i++) + for (unsigned int i = 0, sz = static_cast(mTabs.size()); + i < sz; i++) { if (mTabs[i].first == mSelectedTab) return i; @@ -258,7 +259,7 @@ namespace gcn { int maxTabHeight = 0; unsigned int i; - const unsigned int sz = mTabs.size(); + const unsigned int sz = static_cast(mTabs.size()); for (i = 0; i < sz; i++) { if (mTabs[i].first->getHeight() > maxTabHeight) -- cgit v1.2.3-70-g09d2