diff options
author | Alexander Shalamov <alexander.shalamov@mapbox.com> | 2019-07-23 08:54:16 +0300 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-07-24 21:04:56 +0300 |
commit | 852fef66ef4cbbe753527b42cf23c59de59399b3 (patch) | |
tree | 8636a881439c7ebf0b53b6a3fdbdc4d4bbf5a40a /src/mbgl/tile/vector_tile_data.hpp | |
parent | 6798d21eda03ecc2fb2c46c448a45713fc493f86 (diff) | |
download | qtlocation-mapboxgl-852fef66ef4cbbe753527b42cf23c59de59399b3.tar.gz |
[core] Force getGeometries() return const ref
Diffstat (limited to 'src/mbgl/tile/vector_tile_data.hpp')
-rw-r--r-- | src/mbgl/tile/vector_tile_data.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mbgl/tile/vector_tile_data.hpp b/src/mbgl/tile/vector_tile_data.hpp index 7c95121a37..525c7935e4 100644 --- a/src/mbgl/tile/vector_tile_data.hpp +++ b/src/mbgl/tile/vector_tile_data.hpp @@ -17,10 +17,11 @@ public: optional<Value> getValue(const std::string& key) const override; std::unordered_map<std::string, Value> getProperties() const override; FeatureIdentifier getID() const override; - GeometryCollection getGeometries() const override; + const GeometryCollection& getGeometries() const override; private: mapbox::vector_tile::feature feature; + mutable optional<GeometryCollection> lines; }; class VectorTileLayer : public GeometryTileLayer { |