summaryrefslogtreecommitdiff
path: root/src/mbgl/style/expression/parsing_context.cpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2018-07-25 18:15:24 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2018-07-30 14:08:27 -0700
commitbf7785618ac5f3bbcba068e61ef6359d70aff92b (patch)
tree54fa8b76d30962d038049f3836a4ca0d46de023f /src/mbgl/style/expression/parsing_context.cpp
parent85742b908da65f224b11404436b5ce552bc67780 (diff)
downloadqtlocation-mapboxgl-bf7785618ac5f3bbcba068e61ef6359d70aff92b.tar.gz
[core] Simplify CompoundExpression implementation
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;
}
}