Commit e6426822 authored by Dennis Nienhüser's avatar Dennis Nienhüser
Browse files

No need to create a copy

parent 5acfffe3
......@@ -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);
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