use foreach

This commit is contained in:
Sean Rhea
2009-11-09 09:56:48 -05:00
parent ae5dd3feb3
commit aef876e817

View File

@@ -217,11 +217,8 @@ void CriticalPowerWindow::addSeasons()
season.setName("All Seasons");
seasons.insert(0,season);
for (int i = 0; i < seasons.size(); ++i)
{
season = seasons.at(i);
foreach (Season season, seasons)
cComboSeason->addItem(season.getName());
}
if (!seasons.empty()) {
cComboSeason->setCurrentIndex(cComboSeason->count() - 1);
Season season = seasons.last();