Codechange: Replace FOR_ALL_GOALS with range-based for loops

This commit is contained in:
glx
2019-12-16 17:53:40 +01:00
committed by Niels Martin Hansen
parent 1f6b3a37f9
commit f58ce3db19
4 changed files with 7 additions and 16 deletions

View File

@@ -37,7 +37,4 @@ struct Goal : GoalPool::PoolItem<&_goal_pool> {
inline ~Goal() { free(this->text); free(this->progress); }
};
#define FOR_ALL_GOALS_FROM(var, start) FOR_ALL_ITEMS_FROM(Goal, goal_index, var, start)
#define FOR_ALL_GOALS(var) FOR_ALL_GOALS_FROM(var, 0)
#endif /* GOAL_BASE_H */