summaryrefslogtreecommitdiff
path: root/src/mbgl/tile/vector_tile_data.hpp
diff options
context:
space:
mode:
authorAlexander Shalamov <alexander.shalamov@mapbox.com>2019-07-23 08:54:16 +0300
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-07-24 21:04:56 +0300
commit852fef66ef4cbbe753527b42cf23c59de59399b3 (patch)
tree8636a881439c7ebf0b53b6a3fdbdc4d4bbf5a40a /src/mbgl/tile/vector_tile_data.hpp
parent6798d21eda03ecc2fb2c46c448a45713fc493f86 (diff)
downloadqtlocation-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.hpp3
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 {