forked from organicmaps/organicmaps
Minor fixes.
This commit is contained in:
parent
672a8001c2
commit
0ffae52152
3 changed files with 4 additions and 4 deletions
|
@ -65,7 +65,7 @@ public:
|
|||
template <class Fn>
|
||||
void ForEach(Fn && fn) const
|
||||
{
|
||||
for (ValueT const & v : m_data)
|
||||
for (auto const & v : m_data)
|
||||
fn(v);
|
||||
}
|
||||
};
|
||||
|
|
|
@ -22,13 +22,13 @@ void ReEncodeOsmIdsToFeatureIdsMapping(string const & mappingContent, string con
|
|||
strings::SimpleTokenizer idIter(*lineIter, ", \t" /* id delimiters */);
|
||||
uint64_t osmId = 0;
|
||||
TEST(idIter, ());
|
||||
TEST(strings::to_uint64(*idIter, osmId), ("Cannot covert to uint64_t:", *idIter));
|
||||
TEST(strings::to_uint64(*idIter, osmId), ("Cannot convert to uint64_t:", *idIter));
|
||||
TEST(idIter, ("Wrong feature ids to osm ids mapping."));
|
||||
++idIter;
|
||||
|
||||
uint32_t featureId = 0;
|
||||
TEST(idIter, ());
|
||||
TEST(strings::to_uint(*idIter, featureId), ("Cannot covert to uint:", *idIter));
|
||||
TEST(strings::to_uint(*idIter, featureId), ("Cannot convert to uint:", *idIter));
|
||||
osmIdsToFeatureIds.Add(make_pair(osmId, featureId));
|
||||
++idIter;
|
||||
TEST(!idIter, ());
|
||||
|
|
|
@ -11,7 +11,7 @@ namespace generator
|
|||
/// 20, 2
|
||||
/// 30, 3,
|
||||
/// 40, 4
|
||||
/// \parma outputFilePath full path to an output file where the mapping is saved.
|
||||
/// \param outputFilePath full path to an output file where the mapping is saved.
|
||||
void ReEncodeOsmIdsToFeatureIdsMapping(string const & mappingContent,
|
||||
string const & outputFilePath);
|
||||
} // namespace generator
|
||||
|
|
Loading…
Add table
Reference in a new issue