summaryrefslogtreecommitdiff
path: root/src/mbgl/tile/geometry_tile_data.hpp
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2018-11-30 14:31:37 +0200
committerBruno de Oliveira Abinader <bruno@mapbox.com>2019-01-14 10:45:49 -0400
commitf31386385952f42e0468c7d7a0ab0a066f0bf803 (patch)
tree74432eaa3544daa5f749a315399249c1af30e718 /src/mbgl/tile/geometry_tile_data.hpp
parenta4f2fe4209ef6961662fb53ee5c29cafacd2a303 (diff)
downloadqtlocation-mapboxgl-f31386385952f42e0468c7d7a0ab0a066f0bf803.tar.gz
[core] Remove optional from GeometryTileFeature::getValue()upstream/geometrytilefeature-getvalue-no-optional
Diffstat (limited to 'src/mbgl/tile/geometry_tile_data.hpp')
-rw-r--r--src/mbgl/tile/geometry_tile_data.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/tile/geometry_tile_data.hpp b/src/mbgl/tile/geometry_tile_data.hpp
index 3913615465..8200e51ad8 100644
--- a/src/mbgl/tile/geometry_tile_data.hpp
+++ b/src/mbgl/tile/geometry_tile_data.hpp
@@ -41,8 +41,8 @@ class GeometryTileFeature {
public:
virtual ~GeometryTileFeature() = default;
virtual FeatureType getType() const = 0;
- virtual optional<Value> getValue(const std::string& key) const = 0;
- virtual const PropertyMap& getProperties() const { static PropertyMap empty; return empty; }
+ virtual Value getValue(const std::string& key) const = 0;
+ virtual const PropertyMap& getProperties() const = 0;
virtual FeatureIdentifier getID() const { return NullValue {}; }
virtual GeometryCollection getGeometries() const = 0;
};