summaryrefslogtreecommitdiff
path: root/include/mbgl/style/conversion/heatmap_color_property_value.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/style/conversion/heatmap_color_property_value.hpp')
-rw-r--r--include/mbgl/style/conversion/heatmap_color_property_value.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mbgl/style/conversion/heatmap_color_property_value.hpp b/include/mbgl/style/conversion/heatmap_color_property_value.hpp
index 736506e154..8ed37aacac 100644
--- a/include/mbgl/style/conversion/heatmap_color_property_value.hpp
+++ b/include/mbgl/style/conversion/heatmap_color_property_value.hpp
@@ -21,7 +21,7 @@ struct Converter<HeatmapColorPropertyValue> {
if (isUndefined(value)) {
return HeatmapColorPropertyValue();
} else if (isExpression(value)) {
- ParsingContext ctx({type::Color});
+ ParsingContext ctx(optional<type::Type>{type::Color});
ParseResult expression = ctx.parseLayerPropertyExpression(value);
if (!expression) {
error = { ctx.getCombinedErrors() };