mirror of
https://github.com/gbdev/rgbds.git
synced 2026-06-10 02:32:34 +00:00
Don't hard-code std::string as the key type for InsertionOrderedMap
This commit is contained in:
+1
-1
@@ -88,7 +88,7 @@ bool forEachChar(
|
||||
return true;
|
||||
}
|
||||
|
||||
static InsertionOrderedMap<Charmap> charmaps;
|
||||
static InsertionOrderedMap<std::string, Charmap> charmaps;
|
||||
|
||||
static Charmap *currentCharmap;
|
||||
static std::stack<Charmap *> charmapStack;
|
||||
|
||||
+1
-1
@@ -47,7 +47,7 @@ struct SectionStackEntry {
|
||||
};
|
||||
|
||||
static Section *currentSection = nullptr;
|
||||
static InsertionOrderedMap<Section> sections;
|
||||
static InsertionOrderedMap<std::string, Section> sections;
|
||||
|
||||
static uint32_t curOffset; // Offset into the current section (see `sect_GetSymbolOffset`)
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include "link/main.hpp"
|
||||
#include "link/warning.hpp"
|
||||
|
||||
static InsertionOrderedMap<std::unique_ptr<Section>> sections;
|
||||
static InsertionOrderedMap<std::string, std::unique_ptr<Section>> sections;
|
||||
|
||||
void sect_ForEach(void (*callback)(Section &)) {
|
||||
for (std::unique_ptr<Section> &ptr : sections) {
|
||||
|
||||
Reference in New Issue
Block a user