diff options
author | Alexander Shalamov <alexander.shalamov@mapbox.com> | 2019-10-11 16:13:11 +0300 |
---|---|---|
committer | Alexander Shalamov <alexander.shalamov@mapbox.com> | 2020-02-06 23:54:19 +0200 |
commit | 534003495bc86e621f00597ed57c6c891fd6e33f (patch) | |
tree | 7c0ac4596b40abfc1af4130cf7de244da36a4c12 /platform/default/include/mbgl/storage/offline_download.hpp | |
parent | bb85ec442dd7b5b0966d73bc6b868d33bb03e5e9 (diff) | |
download | qtlocation-mapboxgl-534003495bc86e621f00597ed57c6c891fd6e33f.tar.gz |
[core] Switch unordered_map to map
Change container types where number of elements expected
to be rather small. For instance, number of offline packs
or sql statements.
Diffstat (limited to 'platform/default/include/mbgl/storage/offline_download.hpp')
-rw-r--r-- | platform/default/include/mbgl/storage/offline_download.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/default/include/mbgl/storage/offline_download.hpp b/platform/default/include/mbgl/storage/offline_download.hpp index 3a5159470a..a001359b45 100644 --- a/platform/default/include/mbgl/storage/offline_download.hpp +++ b/platform/default/include/mbgl/storage/offline_download.hpp @@ -58,7 +58,7 @@ private: std::unique_ptr<OfflineRegionObserver> observer; std::list<std::unique_ptr<AsyncRequest>> requests; - std::unordered_set<std::string> requiredSourceURLs; + std::set<std::string> requiredSourceURLs; std::deque<Resource> resourcesRemaining; std::list<Resource> resourcesToBeMarkedAsUsed; std::list<std::tuple<Resource, Response>> buffer; |