summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmapwidgethelper.cpp
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-07-17 23:04:00 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-28 07:31:11 -0700
commitde90480b462891d1b03f8c40c9a42a7bf29d6d35 (patch)
treea3190260a84c5721f8e80e17a8427aea22d93d5b /mobile-widgets/qmlmapwidgethelper.cpp
parentffcfde3b6232d0537043d832459be521c9a7f996 (diff)
downloadsubsurface-de90480b462891d1b03f8c40c9a42a7bf29d6d35.tar.gz
maplocationmodel: use QVector for the MapLocation storage
QVector is faster, use it for "m_mapLocations" instead of QList. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'mobile-widgets/qmlmapwidgethelper.cpp')
-rw-r--r--mobile-widgets/qmlmapwidgethelper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mobile-widgets/qmlmapwidgethelper.cpp b/mobile-widgets/qmlmapwidgethelper.cpp
index 7e653692a..faa0c5f84 100644
--- a/mobile-widgets/qmlmapwidgethelper.cpp
+++ b/mobile-widgets/qmlmapwidgethelper.cpp
@@ -29,7 +29,7 @@ void MapWidgetHelper::reloadMapLocations()
struct dive_site *ds;
int idx;
m_mapLocationModel->clear();
- QList<MapLocation *> locationList;
+ QVector<MapLocation *> locationList;
for_each_dive_site(idx, ds) {
if (!dive_site_has_gps_location(ds))