summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Nienhüser <nienhueser@kde.org>2016-11-01 09:03:02 (GMT)
committerFriedrich W. H. Kossebau <kossebau@kde.org>2016-11-05 16:49:25 (GMT)
commit462f1abe85ee18c4db50e12075e9ff47f8d801bd (patch)
treeb071bdc7dde5e2b4755a863c2a87c3e6d3d37b3c
parent75d5925bd995ddb9f4539b7af60235a6b1f99ae5 (diff)
Avoid copy
-rw-r--r--src/plugins/runner/osm/translators/O5mWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/runner/osm/translators/O5mWriter.cpp b/src/plugins/runner/osm/translators/O5mWriter.cpp
index 73d3116..a02109d 100644
--- a/src/plugins/runner/osm/translators/O5mWriter.cpp
+++ b/src/plugins/runner/osm/translators/O5mWriter.cpp
@@ -78,7 +78,7 @@ void O5mWriter::writeNodes(const OsmConverter::Nodes &nodes, QDataStream &stream
qint64 idDiff = osmData.id() - lastId;
writeSigned(idDiff, bufferStream);
writeVersion(osmData, bufferStream);
- GeoDataCoordinates const coordinates = node.first;
+ GeoDataCoordinates const & coordinates = node.first;
double const lon = coordinates.longitude(GeoDataCoordinates::Degree);
double const lat = coordinates.latitude(GeoDataCoordinates::Degree);
writeSigned(deltaTo(lon, lastLon), bufferStream);