[generator] Optimize pre-processing stage: reference to o5m element instead of copy

This commit is contained in:
Anatoly Serdtcev 2019-10-28 19:12:27 +03:00 committed by LaGrunge
parent 22f3045ab8
commit bc76c3212c

View file

@ -178,7 +178,7 @@ bool ProcessorOsmElementsFromO5M::TryRead(OsmElement & element)
// iterating in loop. Furthermore, into Tags() method calls Nodes.Skip() and Members.Skip(),
// thus first call of Nodes (Members) after Tags() will not return any results.
// So don not reorder the "for" loops (!).
auto const entity = *m_pos;
auto const & entity = *m_pos;
element.m_id = entity.id;
switch (entity.type)
{