[types] Switched to using a constant for the filename

Signed-off-by: Yannik Bloscheck <git@yannikbloscheck.com>
This commit is contained in:
Yannik Bloscheck
2026-01-15 19:14:50 +01:00
committed by Yannik Bloscheck
parent 6b0c505bdb
commit 41919f61a4
2 changed files with 3 additions and 1 deletions

View File

@@ -113,6 +113,7 @@ auto constexpr TMP_OFFSETS_EXT = OFFSET_EXT EXTENSION_TMP;
#define SKIPPED_ELEMENTS_FILE "skipped_elements.json"
#define MAPCSS_MAPPING_FILE "mapcss-mapping.csv"
#define SUBTYPES_FILE "subtypes.csv"
#define REPLACED_TAGS_FILE "replaced_tags.txt"
#define MIXED_TAGS_FILE "mixed_tags.txt"
#define MIXED_NODES_FILE "mixed_nodes.txt"

View File

@@ -5,6 +5,7 @@
#include "coding/reader_streambuf.hpp"
#include "indexer/classificator.hpp"
#include "platform/platform.hpp"
#include "defines.hpp"
namespace ftypes
{
@@ -15,7 +16,7 @@ namespace ftypes
// Get the stream to the CSV file.
Platform & platform = GetPlatform();
unique_ptr<ModelReader> reader = platform.GetReader("subtypes.csv");
unique_ptr<ModelReader> reader = platform.GetReader(SUBTYPES_FILE);
ReaderStreamBuf buffer(std::move(reader));
istream stream(&buffer);