summaryrefslogtreecommitdiff
path: root/src/mbgl/style/expression/parsing_context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/style/expression/parsing_context.cpp')
-rw-r--r--src/mbgl/style/expression/parsing_context.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/style/expression/parsing_context.cpp b/src/mbgl/style/expression/parsing_context.cpp
index a4c04b03b1..979eb58236 100644
--- a/src/mbgl/style/expression/parsing_context.cpp
+++ b/src/mbgl/style/expression/parsing_context.cpp
@@ -38,8 +38,8 @@ bool isConstant(const Expression& expression) {
}
if (expression.getKind() == Kind::CompoundExpression) {
- auto compound = static_cast<const CompoundExpressionBase*>(&expression);
- if (compound->getName() == "error") {
+ auto compound = static_cast<const CompoundExpression*>(&expression);
+ if (compound->getOperator() == "error") {
return false;
}
}