diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-07-02 11:36:36 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-07-02 11:36:36 +0200 |
commit | 5d92e7c610887d41242a77617ff4445c6442685d (patch) | |
tree | 44c6bdc0c7d7a85c13cb6d1c65e74096a4c7faac /include/llmr/style | |
parent | 231e3ef80c65a0b3f4f1493703962131866308f7 (diff) | |
download | qtlocation-mapboxgl-5d92e7c610887d41242a77617ff4445c6442685d.tar.gz |
switch to unordered_map for sprites
Diffstat (limited to 'include/llmr/style')
-rw-r--r-- | include/llmr/style/sprite.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/llmr/style/sprite.hpp b/include/llmr/style/sprite.hpp index 4f902d77a9..07f5903e51 100644 --- a/include/llmr/style/sprite.hpp +++ b/include/llmr/style/sprite.hpp @@ -1,14 +1,14 @@ #ifndef LLMR_STYLE_SPRITE #define LLMR_STYLE_SPRITE -#include <map> +#include <llmr/util/raster.hpp> +#include <llmr/util/vec.hpp> + #include <string> #include <mutex> #include <memory> #include <atomic> - -#include <llmr/util/raster.hpp> -#include <llmr/util/vec.hpp> +#include <unordered_map> namespace llmr { @@ -55,7 +55,7 @@ private: std::string body; std::string image; std::atomic<bool> loaded; - std::map<std::string, SpritePosition> pos; + std::unordered_map<std::string, SpritePosition> pos; const SpritePosition empty; }; |