Loops handled.

Hmm...is there a reason for the block surrounding those two?
This commit is contained in:
Jason Felds
2013-04-30 22:09:10 -04:00
parent f0d0ea27e6
commit 173b4590c7
+5 -5
View File
@@ -33,10 +33,10 @@ static void SetNextCombination()
{ {
vector<StepsTypeAndDifficulty> v; vector<StepsTypeAndDifficulty> v;
{ {
FOREACH_CONST( StepsType, CommonMetrics::STEPS_TYPES_TO_SHOW.GetValue(), st ) for (StepsType const &st : CommonMetrics::STEPS_TYPES_TO_SHOW.GetValue())
{ {
FOREACH_CONST( CourseDifficulty, CommonMetrics::COURSE_DIFFICULTIES_TO_SHOW.GetValue(), cd ) for (CourseDifficulty const &cd : CommonMetrics::COURSE_DIFFICULTIES_TO_SHOW.GetValue())
v.push_back( StepsTypeAndDifficulty(*st, *cd) ); v.push_back( StepsTypeAndDifficulty(st, cd) );
} }
} }
@@ -116,12 +116,12 @@ void ScreenOptionsManageCourses::BeginScreen()
break; break;
} }
FOREACH_CONST( Course*, m_vpCourses, p ) for (Course const *p : m_vpCourses)
{ {
vHands.push_back( OptionRowHandlerUtil::MakeNull() ); vHands.push_back( OptionRowHandlerUtil::MakeNull() );
OptionRowDefinition &def = vHands.back()->m_Def; OptionRowDefinition &def = vHands.back()->m_Def;
def.m_sName = (*p)->GetDisplayFullTitle(); def.m_sName = p->GetDisplayFullTitle();
def.m_bAllowThemeTitle = false; // not themable def.m_bAllowThemeTitle = false; // not themable
def.m_sExplanationName = "Select Course"; def.m_sExplanationName = "Select Course";
def.m_vsChoices.clear(); def.m_vsChoices.clear();