summaryrefslogtreecommitdiff
path: root/platform/default/include/mbgl/storage/offline_database.hpp
diff options
context:
space:
mode:
authorAlexander Shalamov <alexander.shalamov@mapbox.com>2019-10-11 16:13:11 +0300
committerAlexander Shalamov <alexander.shalamov@mapbox.com>2020-02-06 23:54:19 +0200
commit534003495bc86e621f00597ed57c6c891fd6e33f (patch)
tree7c0ac4596b40abfc1af4130cf7de244da36a4c12 /platform/default/include/mbgl/storage/offline_database.hpp
parentbb85ec442dd7b5b0966d73bc6b868d33bb03e5e9 (diff)
downloadqtlocation-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_database.hpp')
-rw-r--r--platform/default/include/mbgl/storage/offline_database.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/default/include/mbgl/storage/offline_database.hpp b/platform/default/include/mbgl/storage/offline_database.hpp
index 8c39090fbc..96c012b307 100644
--- a/platform/default/include/mbgl/storage/offline_database.hpp
+++ b/platform/default/include/mbgl/storage/offline_database.hpp
@@ -9,10 +9,10 @@
#include <mbgl/util/mapbox.hpp>
#include <mbgl/util/expected.hpp>
-#include <unordered_map>
+#include <list>
+#include <map>
#include <memory>
#include <string>
-#include <list>
namespace mapbox {
namespace sqlite {
@@ -140,7 +140,7 @@ private:
std::string path;
std::unique_ptr<mapbox::sqlite::Database> db;
- std::unordered_map<const char *, const std::unique_ptr<mapbox::sqlite::Statement>> statements;
+ std::map<const char*, const std::unique_ptr<mapbox::sqlite::Statement>> statements;
template <class T>
T getPragma(const char *);