summaryrefslogtreecommitdiffstats
path: root/qt-models/maplocationmodel.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 /qt-models/maplocationmodel.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 'qt-models/maplocationmodel.cpp')
-rw-r--r--qt-models/maplocationmodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-models/maplocationmodel.cpp b/qt-models/maplocationmodel.cpp
index 62cd49aba..911905f1b 100644
--- a/qt-models/maplocationmodel.cpp
+++ b/qt-models/maplocationmodel.cpp
@@ -68,7 +68,7 @@ void MapLocationModel::add(MapLocation *location)
endInsertRows();
}
-void MapLocationModel::addList(QList<MapLocation *> list)
+void MapLocationModel::addList(QVector<MapLocation *> list)
{
if (!list.size())
return;