Use C++ iterator for fragment/union "pieces" of RGBLINK sections

This commit is contained in:
Rangi
2025-10-05 15:07:25 -04:00
parent 7733ccdeb6
commit 0c9920d4a6
6 changed files with 56 additions and 24 deletions
+2 -2
View File
@@ -251,8 +251,8 @@ void layout_PlaceSection(std::string const &name, bool isOptional) {
);
} else {
// SDCC areas don't have a type assigned yet, so the linker script gives them one.
for (Section *piece = section; piece != nullptr; piece = piece->nextPiece.get()) {
piece->type = activeType;
for (Section &piece : section->pieces()) {
piece.type = activeType;
}
}
} else if (section->type != activeType) {