Fix some bad "for (auto x : y)" usage

This commit is contained in:
Henrik Rydgård
2025-04-29 16:46:14 +02:00
parent 62e4b2852c
commit dbe6ec80a0
17 changed files with 31 additions and 27 deletions
+1 -1
View File
@@ -542,7 +542,7 @@ static void WriteVarSymbol(WriteVarSymbolState &state, u32 exportAddress, u32 re
ERROR_LOG_REPORT(Log::Loader, "HI16 and LO16 imports do not match at %08x for %08x (should be %08x)", relocAddress, state.lastHI16ExportAddress, exportAddress);
} else {
// Process each of the HI16. Usually there's only one.
for (auto &reloc : state.lastHI16Relocs) {
for (const auto &reloc : state.lastHI16Relocs) {
if (!reverse) {
full = (reloc.data << 16) + offsetLo + exportAddress;
} else {