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/geometry_tile_data.hpp | |
parent | 6798d21eda03ecc2fb2c46c448a45713fc493f86 (diff) | |
download | qtlocation-mapboxgl-852fef66ef4cbbe753527b42cf23c59de59399b3.tar.gz |
[core] Force getGeometries() return const ref
Diffstat (limited to 'src/mbgl/tile/geometry_tile_data.hpp')
-rw-r--r-- | src/mbgl/tile/geometry_tile_data.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/tile/geometry_tile_data.hpp b/src/mbgl/tile/geometry_tile_data.hpp index 6ce67a532e..db3378a019 100644 --- a/src/mbgl/tile/geometry_tile_data.hpp +++ b/src/mbgl/tile/geometry_tile_data.hpp @@ -44,7 +44,7 @@ public: virtual optional<Value> getValue(const std::string& key) const = 0; virtual PropertyMap getProperties() const { return PropertyMap(); } virtual FeatureIdentifier getID() const { return NullValue {}; } - virtual GeometryCollection getGeometries() const = 0; + virtual const GeometryCollection& getGeometries() const = 0; }; class GeometryTileLayer { |