mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 08:08:42 +00:00
use foreach
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user