mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-22 02:53:59 +00:00
[types] Switched to using a constant for the filename
Signed-off-by: Yannik Bloscheck <git@yannikbloscheck.com>
This commit is contained in:
committed by
Yannik Bloscheck
parent
6b0c505bdb
commit
41919f61a4
@@ -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"
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user