summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Nienhüser <nienhueser@kde.org>2016-09-03 15:37:39 (GMT)
committerDennis Nienhüser <nienhueser@kde.org>2016-09-03 15:37:39 (GMT)
commit89c5847ca2e455cb92f8e3df330992c6d7967df8 (patch)
tree5f3921e365bee2119c4bbe74b26dc1d7136f83b6
parente8e5e4290fc90effa296e439c69568e99b0a7e3b (diff)
Don't repeat yourself
-rw-r--r--tools/osm-simplify/TinyPlanetProcessor.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/osm-simplify/TinyPlanetProcessor.cpp b/tools/osm-simplify/TinyPlanetProcessor.cpp
index 5978931..f15bc95 100644
--- a/tools/osm-simplify/TinyPlanetProcessor.cpp
+++ b/tools/osm-simplify/TinyPlanetProcessor.cpp
@@ -183,11 +183,7 @@ GeoDataDocument *TinyPlanetProcessor::cutToTiles(unsigned int zoomLevel, unsigne
void TinyPlanetProcessor::copyTags(const GeoDataPlacemark &source, GeoDataPlacemark &target) const
{
- auto const originalPlacemarkData = source.osmData();
- OsmPlacemarkData & osmData = target.osmData();
- for (auto iter=originalPlacemarkData.tagsBegin(), end=originalPlacemarkData.tagsEnd(); iter != end; ++iter) {
- osmData.addTag(iter.key(), iter.value());
- }
+ copyTags(source.osmData(), target.osmData());
}
void TinyPlanetProcessor::copyTags(const OsmPlacemarkData &originalPlacemarkData, OsmPlacemarkData &targetOsmData) const