diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2017-07-17 23:04:00 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-07-28 07:31:11 -0700 |
commit | de90480b462891d1b03f8c40c9a42a7bf29d6d35 (patch) | |
tree | a3190260a84c5721f8e80e17a8427aea22d93d5b /mobile-widgets/qmlmapwidgethelper.cpp | |
parent | ffcfde3b6232d0537043d832459be521c9a7f996 (diff) | |
download | subsurface-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.cpp | 2 |
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))
|