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

@@ -45,7 +45,7 @@ bool InfoTask::isCompleted() {
// If a menu is displayed, then we use the handleUIInput to complete the
// task
bAllComplete = true;
for (AUTO_VAR(it, completedMappings.begin());
for (auto it = completedMappings.begin();
it != completedMappings.end(); ++it) {
bool current = (*it).second;
if (!current) {
@@ -56,7 +56,7 @@ bool InfoTask::isCompleted() {
} else {
int iCurrent = 0;
for (AUTO_VAR(it, completedMappings.begin());
for (auto it = completedMappings.begin();
it != completedMappings.end(); ++it) {
bool current = (*it).second;
if (!current) {
@@ -94,7 +94,7 @@ void InfoTask::setAsCurrentTask(bool active /*= true*/) {
void InfoTask::handleUIInput(int iAction) {
if (bHasBeenActivated) {
for (AUTO_VAR(it, completedMappings.begin());
for (auto it = completedMappings.begin();
it != completedMappings.end(); ++it) {
if (iAction == (*it).first) {
(*it).second = true;