summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Nienhüser <[email protected]>2016-06-25 23:24:30 +0200
committerDennis Nienhüser <[email protected]>2016-06-25 23:25:27 +0200
commit760377cf4edfc938c5f4e65903aa6f45bcc84058 (patch)
tree369b58a38c65c9774f2889d7de5d7cd37cb7cb65
parent8de21efb81b15e8c71ac1bc45bcdae5e1e123a2f (diff)
Avoid copies (write .osm files faster)
-rw-r--r--src/plugins/runner/osm/translators/OsmDocumentTagTranslator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/runner/osm/translators/OsmDocumentTagTranslator.cpp b/src/plugins/runner/osm/translators/OsmDocumentTagTranslator.cpp
index 5ca083c..d7fc2fd 100644
--- a/src/plugins/runner/osm/translators/OsmDocumentTagTranslator.cpp
+++ b/src/plugins/runner/osm/translators/OsmDocumentTagTranslator.cpp
@@ -96,7 +96,7 @@ bool OsmDocumentTagTranslator::writeMid( const GeoNode *node, GeoWriter& writer
}
// Writing the bounds ( innerBounds and outerBounds, part of polygons )
- foreach ( OsmBound bound, bounds ) {
+ foreach ( const OsmBound & bound, bounds ) {
OsmWayTagWriter::writeWay( *bound.first, bound.second, writer );
}