diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2018-11-26 08:26:26 +0200 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2018-11-26 12:43:13 +0200 |
commit | 82be3104cd40372e6f99284ff0fccd1e3879fd1d (patch) | |
tree | f5c19cdd593fff0e7e14b8b6b5ffaebfea5e46e5 /src | |
parent | f3b9a43b133bb329dd7c6fb532e980e4525cd435 (diff) | |
download | qtlocation-mapboxgl-82be3104cd40372e6f99284ff0fccd1e3879fd1d.tar.gz |
[core] Fix VectorTileFeature::getValue() semantics after geometry@v1.0.0
Diffstat (limited to 'src')
-rw-r--r-- | src/mbgl/tile/vector_tile_data.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mbgl/tile/vector_tile_data.cpp b/src/mbgl/tile/vector_tile_data.cpp index 6363b0d3dd..2d47515e0f 100644 --- a/src/mbgl/tile/vector_tile_data.cpp +++ b/src/mbgl/tile/vector_tile_data.cpp @@ -22,7 +22,8 @@ FeatureType VectorTileFeature::getType() const { } optional<Value> VectorTileFeature::getValue(const std::string& key) const { - return feature.getValue(key); + const optional<Value> value(feature.getValue(key)); + return value->is<NullValue>() ? nullopt : std::move(value); } std::unordered_map<std::string, Value> VectorTileFeature::getProperties() const { |