From 107622a72ba6929bdd70e42d96c16b62c9f65dd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Tue, 4 Jul 2017 18:26:50 +0200 Subject: [PATCH] [core] don't use unordered_* collections for things we need to sort anyway --- src/mbgl/algorithm/generate_clip_ids.hpp | 8 ++++---- test/algorithm/generate_clip_ids.test.cpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mbgl/algorithm/generate_clip_ids.hpp b/src/mbgl/algorithm/generate_clip_ids.hpp index c4d332343..8338c7c14 100644 --- a/src/mbgl/algorithm/generate_clip_ids.hpp +++ b/src/mbgl/algorithm/generate_clip_ids.hpp @@ -3,9 +3,9 @@ #include #include -#include +#include #include -#include +#include namespace mbgl { namespace algorithm { @@ -17,12 +17,12 @@ private: void add(const CanonicalTileID &p); bool operator==(const Leaf &other) const; - std::unordered_set children; + std::set children; ClipID& clip; }; uint8_t bit_offset = 0; - std::unordered_multimap pool; + std::multimap pool; public: template diff --git a/test/algorithm/generate_clip_ids.test.cpp b/test/algorithm/generate_clip_ids.test.cpp index 730dc7b7f..404ab7991 100644 --- a/test/algorithm/generate_clip_ids.test.cpp +++ b/test/algorithm/generate_clip_ids.test.cpp @@ -10,7 +10,7 @@ struct Renderable { bool used = true; bool operator==(const Renderable& rhs) const { - return clip == rhs.clip; + return id == rhs.id && clip == rhs.clip; } };