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 /qt-models/maplocationmodel.h | |
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 'qt-models/maplocationmodel.h')
-rw-r--r-- | qt-models/maplocationmodel.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qt-models/maplocationmodel.h b/qt-models/maplocationmodel.h index c73fa246e..547641fe7 100644 --- a/qt-models/maplocationmodel.h +++ b/qt-models/maplocationmodel.h @@ -3,7 +3,7 @@ #define MAPLOCATIONMODEL_H #include <QObject> -#include <QList> +#include <QVector> #include <QHash> #include <QByteArray> #include <QAbstractListModel> @@ -43,14 +43,14 @@ public: int rowCount(const QModelIndex &parent) const override; int count(); void add(MapLocation *); - void addList(QList<MapLocation *>); + void addList(QVector<MapLocation *>); void clear(); protected: QHash<int, QByteArray> roleNames() const; private: - QList<MapLocation *> m_mapLocations; + QVector<MapLocation *> m_mapLocations; QHash<int, QByteArray> m_roles; signals: |