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/src/mbgl/storage/online_file_source.cpp | |
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/src/mbgl/storage/online_file_source.cpp')
-rw-r--r-- | platform/default/src/mbgl/storage/online_file_source.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/platform/default/src/mbgl/storage/online_file_source.cpp b/platform/default/src/mbgl/storage/online_file_source.cpp index 37b1f7ca8e..8aa2d225ee 100644 --- a/platform/default/src/mbgl/storage/online_file_source.cpp +++ b/platform/default/src/mbgl/storage/online_file_source.cpp @@ -24,8 +24,6 @@ #include <cassert> #include <list> #include <map> -#include <unordered_map> -#include <unordered_set> namespace mbgl { @@ -277,11 +275,11 @@ private: * Requests in any state are in `allRequests`. Requests in the pending state are in * `pendingRequests`. Requests in the active state are in `activeRequests`. */ - std::unordered_set<OnlineFileRequest*> allRequests; + std::set<OnlineFileRequest*> allRequests; PendingRequests pendingRequests; - std::unordered_set<OnlineFileRequest*> activeRequests; + std::set<OnlineFileRequest*> activeRequests; bool online = true; uint32_t maximumConcurrentRequests; |