style cleanup: use FOREACH_ENUM( X, x ) everywhere instead of FOREACH_X( x ) for consistency
The FOREACH_X defines are not very useful, and they were created back before FOREACH_ENUM was convenient.
This commit is contained in:
@@ -29,7 +29,7 @@ const char *g_CRSDifficultyNames[] =
|
||||
|
||||
static CourseDifficulty CRSStringToDifficulty( const RString& s )
|
||||
{
|
||||
FOREACH_Difficulty(i)
|
||||
FOREACH_ENUM( Difficulty,i)
|
||||
if( !s.CompareNoCase(g_CRSDifficultyNames[i]) )
|
||||
return i;
|
||||
return Difficulty_Invalid;
|
||||
|
||||
Reference in New Issue
Block a user