From 41919f61a4dd0e3a2e5a213513483d2a5bed5e18 Mon Sep 17 00:00:00 2001 From: Yannik Bloscheck Date: Thu, 15 Jan 2026 19:14:50 +0100 Subject: [PATCH] [types] Switched to using a constant for the filename Signed-off-by: Yannik Bloscheck --- defines.hpp | 1 + libs/indexer/ftypes_subtypes.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/defines.hpp b/defines.hpp index b16b76dc0..53be3f7f4 100644 --- a/defines.hpp +++ b/defines.hpp @@ -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" diff --git a/libs/indexer/ftypes_subtypes.cpp b/libs/indexer/ftypes_subtypes.cpp index 83c8363eb..d60677757 100644 --- a/libs/indexer/ftypes_subtypes.cpp +++ b/libs/indexer/ftypes_subtypes.cpp @@ -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 reader = platform.GetReader("subtypes.csv"); + unique_ptr reader = platform.GetReader(SUBTYPES_FILE); ReaderStreamBuf buffer(std::move(reader)); istream stream(&buffer);