Replace RGBLINK non-null pointers with references

This commit is contained in:
Rangi42
2024-03-03 00:39:20 -05:00
committed by Sylvie
parent 538b253dfb
commit 930a5c3e44
13 changed files with 469 additions and 487 deletions

View File

@@ -342,11 +342,13 @@ next:
exit(1);
}
static void freeSection(Section *section)
static void freeSection(Section &section)
{
for (Section *next; section; section = next) {
next = section->nextu;
delete section;
Section *next = &section;
for (Section *nextu; next; next = nextu) {
nextu = next->nextu;
delete next;
};
}
@@ -478,7 +480,7 @@ int main(int argc, char *argv[])
}
// then process them,
obj_DoSanityChecks();
sect_DoSanityChecks();
if (nbErrors != 0)
reportErrors();
assign_AssignSections();