[generator] Fix warning

This commit is contained in:
Mikhail Gorbushin 2019-12-10 16:56:51 +03:00 committed by Maksim Andrianov
parent 1778653997
commit 23e260539d
2 changed files with 5 additions and 6 deletions

View file

@ -362,8 +362,8 @@ OSMElementCacheReader::OSMElementCacheReader(string const & name, bool preload,
}
// OSMElementCacheWriter ---------------------------------------------------------------------------
OSMElementCacheWriter::OSMElementCacheWriter(string const & name, bool preload)
: m_fileWriter(name), m_offsets(name + OFFSET_EXT), m_name(name), m_preload(preload)
OSMElementCacheWriter::OSMElementCacheWriter(string const & name)
: m_fileWriter(name), m_offsets(name + OFFSET_EXT), m_name(name)
{
}
@ -384,8 +384,8 @@ IntermediateDataReader::IntermediateDataReader(PointStorageReaderInterface const
IntermediateDataWriter::IntermediateDataWriter(PointStorageWriterInterface & nodes,
feature::GenerateInfo const & info)
: m_nodes(nodes)
, m_ways(info.GetIntermediateFileName(WAYS_FILE), info.m_preloadCache)
, m_relations(info.GetIntermediateFileName(RELATIONS_FILE), info.m_preloadCache)
, m_ways(info.GetIntermediateFileName(WAYS_FILE))
, m_relations(info.GetIntermediateFileName(RELATIONS_FILE))
, m_nodeToRelations(info.GetIntermediateFileName(NODES_FILE, ID2REL_EXT))
, m_wayToRelations(info.GetIntermediateFileName(WAYS_FILE, ID2REL_EXT))
, m_relationToRelations(info.GetIntermediateFileName(RELATIONS_FILE, ID2REL_EXT))

View file

@ -182,7 +182,7 @@ private:
class OSMElementCacheWriter
{
public:
explicit OSMElementCacheWriter(std::string const & name, bool preload = false);
explicit OSMElementCacheWriter(std::string const & name);
template <typename Value>
void Write(Key id, Value const & value)
@ -206,7 +206,6 @@ private:
IndexFileWriter m_offsets;
std::string m_name;
std::vector<uint8_t> m_data;
bool m_preload = false;
};
class IntermediateDataReaderInterface