summaryrefslogtreecommitdiff
path: root/src/mbgl/tile/vector_tile_data.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/tile/vector_tile_data.cpp')
-rw-r--r--src/mbgl/tile/vector_tile_data.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mbgl/tile/vector_tile_data.cpp b/src/mbgl/tile/vector_tile_data.cpp
index 305f8e7dcf..be66dc0709 100644
--- a/src/mbgl/tile/vector_tile_data.cpp
+++ b/src/mbgl/tile/vector_tile_data.cpp
@@ -21,9 +21,8 @@ FeatureType VectorTileFeature::getType() const {
}
}
-optional<Value> VectorTileFeature::getValue(const std::string& key) const {
- const optional<Value> value(feature.getValue(key));
- return value->is<NullValue>() ? nullopt : std::move(value);
+Value VectorTileFeature::getValue(const std::string& key) const {
+ return feature.getValue(key);
}
const PropertyMap& VectorTileFeature::getProperties() const {