From bc76c3212c81c3b4e759abc1b628deb0091bb96b Mon Sep 17 00:00:00 2001 From: Anatoly Serdtcev Date: Mon, 28 Oct 2019 19:12:27 +0300 Subject: [PATCH] [generator] Optimize pre-processing stage: reference to o5m element instead of copy --- generator/osm_source.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator/osm_source.cpp b/generator/osm_source.cpp index 8a94705..8beffbf 100644 --- a/generator/osm_source.cpp +++ b/generator/osm_source.cpp @@ -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) {