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>
This commit is contained in:
Lubomir I. Ivanov 2017-07-17 23:04:00 +03:00 committed by Dirk Hohndel
parent ffcfde3b62
commit de90480b46
3 changed files with 5 additions and 5 deletions

View file

@ -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))