diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-09-13 17:37:30 +0300 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-09-19 14:51:32 +0300 |
commit | f997ae00ae960f38d6920a625fcb7237e5909f9c (patch) | |
tree | 4478f9e94c4181f68a1d76128e9514800f586d31 /src/mbgl/geometry/feature_index.hpp | |
parent | 80e8d7a2fcb9f75e585bb7dd26c2f2a893b6f560 (diff) | |
download | qtlocation-mapboxgl-f997ae00ae960f38d6920a625fcb7237e5909f9c.tar.gz |
[core] Fix Placement constness
Update buckets methods do not mutate placement, placement methods do not mutate buckets.
Diffstat (limited to 'src/mbgl/geometry/feature_index.hpp')
-rw-r--r-- | src/mbgl/geometry/feature_index.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mbgl/geometry/feature_index.hpp b/src/mbgl/geometry/feature_index.hpp index 5a006a51bc..69897b1f4b 100644 --- a/src/mbgl/geometry/feature_index.hpp +++ b/src/mbgl/geometry/feature_index.hpp @@ -51,6 +51,8 @@ public: uint16_t collisionGroupId; }; +using FeatureSortOrder = std::shared_ptr<const std::vector<size_t>>; + class FeatureIndex { public: FeatureIndex(std::unique_ptr<const GeometryTileData> tileData_); @@ -79,7 +81,7 @@ public: const RenderedQueryOptions& options, const std::unordered_map<std::string, const RenderLayer*>& layers, const OverscaledTileID& tileID, - const std::shared_ptr<std::vector<size_t>>& featureSortOrder) const; + const FeatureSortOrder& featureSortOrder) const; private: void addFeature(std::unordered_map<std::string, std::vector<Feature>>& result, const IndexedSubfeature&, |