Commit 462f1abe authored by Dennis Nienhüser's avatar Dennis Nienhüser Committed by Friedrich W. H. Kossebau
Browse files

Avoid copy

parent 75d5925b
......@@ -78,7 +78,7 @@ void O5mWriter::writeNodes(const OsmConverter::Nodes &nodes, QDataStream &stream
qint64 idDiff = - 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);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment