summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Nienhüser <nienhueser@kde.org>2016-09-03 15:40:27 (GMT)
committerDennis Nienhüser <nienhueser@kde.org>2016-09-03 15:40:27 (GMT)
commit1f5dc1b577eb5d8f1a42f7e035a8717916fb357d (patch)
tree12d118c161416310131394c215f2c7758acd1e0c
parent89c5847ca2e455cb92f8e3df330992c6d7967df8 (diff)
Use qDeleteAll
-rw-r--r--tools/osm-simplify/WayConcatenator.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/osm-simplify/WayConcatenator.cpp b/tools/osm-simplify/WayConcatenator.cpp
index 93c31c4..8291008 100644
--- a/tools/osm-simplify/WayConcatenator.cpp
+++ b/tools/osm-simplify/WayConcatenator.cpp
@@ -31,10 +31,7 @@ WayConcatenator::WayConcatenator(GeoDataDocument *document, const QStringList &t
WayConcatenator::~WayConcatenator()
{
- QVector<WayChunk*>::iterator itr = m_chunks.begin();
- for (; itr != m_chunks.end(); ++itr) {
- delete *itr;
- }
+ qDeleteAll(m_chunks);
}
void WayConcatenator::process()