diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2018-07-25 18:15:24 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2018-07-30 14:08:27 -0700 |
commit | bf7785618ac5f3bbcba068e61ef6359d70aff92b (patch) | |
tree | 54fa8b76d30962d038049f3836a4ca0d46de023f /src/mbgl/style/expression/parsing_context.cpp | |
parent | 85742b908da65f224b11404436b5ce552bc67780 (diff) | |
download | qtlocation-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.cpp | 4 |
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; } } |