summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Nienhüser <nienhueser@kde.org>2016-10-03 17:03:19 (GMT)
committerDennis Nienhüser <nienhueser@kde.org>2016-10-03 17:03:19 (GMT)
commite64268225ea673555060cbc6aa725398aa5f430e (patch)
tree78de85a862159f4e4c0f5a4aadb83b03f48a2815
parent5acfffe3696927966f5c030277bad15abd0be20c (diff)
No need to create a copy
-rw-r--r--src/plugins/runner/osm/translators/OsmConverter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/runner/osm/translators/OsmConverter.cpp b/src/plugins/runner/osm/translators/OsmConverter.cpp
index 1788b1e..d96d9c7 100644
--- a/src/plugins/runner/osm/translators/OsmConverter.cpp
+++ b/src/plugins/runner/osm/translators/OsmConverter.cpp
@@ -42,7 +42,7 @@ void OsmConverter::read(const GeoDataDocument *document)
foreach (GeoDataPlacemark* placemark, document->placemarkList()) {
// If the placemark's osmData is not complete, it is initialized by the OsmObjectManager
OsmObjectManager::initializeOsmData( placemark );
- const OsmPlacemarkData osmData = placemark->osmData();
+ const OsmPlacemarkData & osmData = placemark->osmData();
if ( placemark->geometry()->nodeType() == GeoDataTypes::GeoDataPointType ) {
m_nodes << OsmConverter::Node(placemark->coordinate(), osmData);