From de90480b462891d1b03f8c40c9a42a7bf29d6d35 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Mon, 17 Jul 2017 23:04:00 +0300 Subject: maplocationmodel: use QVector for the MapLocation storage QVector is faster, use it for "m_mapLocations" instead of QList. Signed-off-by: Lubomir I. Ivanov --- mobile-widgets/qmlmapwidgethelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mobile-widgets') 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 locationList; + QVector locationList; for_each_dive_site(idx, ds) { if (!dive_site_has_gps_location(ds)) -- cgit v1.2.3-70-g09d2