mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Replace RGBLINK non-null pointers with references
This commit is contained in:
@@ -342,11 +342,13 @@ next:
|
||||
exit(1);
|
||||
}
|
||||
|
||||
static void freeSection(Section *section)
|
||||
static void freeSection(Section §ion)
|
||||
{
|
||||
for (Section *next; section; section = next) {
|
||||
next = section->nextu;
|
||||
delete section;
|
||||
Section *next = §ion;
|
||||
|
||||
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();
|
||||
|
||||
Reference in New Issue
Block a user