summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Nienhüser <nienhueser@kde.org>2016-10-22 12:50:35 (GMT)
committerFriedrich W. H. Kossebau <kossebau@kde.org>2016-11-05 16:47:11 (GMT)
commit4dd642a49e3b9fd725b433485d0b9a5916858c07 (patch)
tree378428ec52161fa6b88f3917259f1b9833755b6e
parent5213c02e8779309aee1d7575d751c010d283ff09 (diff)
Prefer QVector over QList
-rw-r--r--src/lib/marble/layers/GeometryLayer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/marble/layers/GeometryLayer.cpp b/src/lib/marble/layers/GeometryLayer.cpp
index 95d0284..f4915d6 100644
--- a/src/lib/marble/layers/GeometryLayer.cpp
+++ b/src/lib/marble/layers/GeometryLayer.cpp
@@ -132,7 +132,7 @@ bool GeometryLayer::render( GeoPainter *painter, ViewportParams *viewport,
typedef QPair<QString, GeoGraphicsItem*> LayerItem;
QList<LayerItem> defaultLayer;
int paintedItems = 0;
- QHash<QString, QList<GeoGraphicsItem*> > paintedFragments;
+ QHash<QString, QVector<GeoGraphicsItem*> > paintedFragments;
QSet<QString> const knownLayers = QSet<QString>::fromList(d->m_styleBuilder->renderOrder());
auto const viewLatLonAltBox = viewport->viewLatLonAltBox();
foreach( GeoGraphicsItem* item, items ) {
@@ -159,7 +159,7 @@ bool GeometryLayer::render( GeoPainter *painter, ViewportParams *viewport,
}
foreach (const QString &layer, d->m_styleBuilder->renderOrder()) {
- QList<GeoGraphicsItem*> & layerItems = paintedFragments[layer];
+ QVector<GeoGraphicsItem*> & layerItems = paintedFragments[layer];
qStableSort(layerItems.begin(), layerItems.end(), GeoGraphicsItem::zValueLessThan);
foreach(auto item, layerItems) {
item->paint(painter, viewport, layer);