refactor: expand AUTO_VAR macro

This commit is contained in:
Tropical
2026-03-29 23:59:05 -05:00
parent a330ecdcbb
commit e45151ae64
201 changed files with 1051 additions and 1055 deletions

View File

@@ -7,14 +7,14 @@
LevelRuleset::LevelRuleset() { m_stringTable = NULL; }
LevelRuleset::~LevelRuleset() {
for (AUTO_VAR(it, m_areas.begin()); it != m_areas.end(); ++it) {
for (auto it = m_areas.begin(); it != m_areas.end(); ++it) {
delete *it;
}
}
void LevelRuleset::getChildren(std::vector<GameRuleDefinition*>* children) {
CompoundGameRuleDefinition::getChildren(children);
for (AUTO_VAR(it, m_areas.begin()); it != m_areas.end(); it++)
for (auto it = m_areas.begin(); it != m_areas.end(); it++)
children->push_back(*it);
}
@@ -44,7 +44,7 @@ const wchar_t* LevelRuleset::getString(const std::wstring& key) {
AABB* LevelRuleset::getNamedArea(const std::wstring& areaName) {
AABB* area = NULL;
for (AUTO_VAR(it, m_areas.begin()); it != m_areas.end(); ++it) {
for (auto it = m_areas.begin(); it != m_areas.end(); ++it) {
if ((*it)->getName().compare(areaName) == 0) {
area = (*it)->getArea();
break;