diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2019-01-30 14:23:07 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2019-01-30 16:22:13 +0200 |
commit | 2a535a8f5e4431ac254c212441945a6b8c490f6b (patch) | |
tree | ca378e98de1037c1acf2ae798dadf1f84bcc64ae /platform/qt/include/qmapboxgl.hpp | |
parent | ab9602539492c47bc51071e4368d30fcdf49f98e (diff) | |
download | qtlocation-mapboxgl-2a535a8f5e4431ac254c212441945a6b8c490f6b.tar.gz |
[qt] Use QVector instead of QList
For our use case `QVector` is more efficient and will
do less memory allocations.
Fixes: #13830
Diffstat (limited to 'platform/qt/include/qmapboxgl.hpp')
-rw-r--r-- | platform/qt/include/qmapboxgl.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/qt/include/qmapboxgl.hpp b/platform/qt/include/qmapboxgl.hpp index 470947383d..d29c9fc2c6 100644 --- a/platform/qt/include/qmapboxgl.hpp +++ b/platform/qt/include/qmapboxgl.hpp @@ -240,7 +240,7 @@ public: bool layerExists(const QString &id); void removeLayer(const QString &id); - QList<QString> layerIds() const; + QVector<QString> layerIds() const; void setFilter(const QString &layer, const QVariant &filter); QVariant getFilter(const QString &layer) const; |