mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 02:32:06 +00:00
Use concrete types instead of auto when convenient and not redundant (#1757)
This commit is contained in:
@@ -16,7 +16,7 @@ std::vector<std::unique_ptr<Section>> sectionList;
|
||||
std::unordered_map<std::string, size_t> sectionMap; // Indexes into `sectionList`
|
||||
|
||||
void sect_ForEach(void (*callback)(Section &)) {
|
||||
for (auto &ptr : sectionList) {
|
||||
for (std::unique_ptr<Section> &ptr : sectionList) {
|
||||
callback(*ptr);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user