summaryrefslogtreecommitdiff
path: root/src/mbgl/style/expression/is_constant.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/style/expression/is_constant.cpp')
-rw-r--r--src/mbgl/style/expression/is_constant.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/style/expression/is_constant.cpp b/src/mbgl/style/expression/is_constant.cpp
index 3b1f1aba8c..69f27f6fef 100644
--- a/src/mbgl/style/expression/is_constant.cpp
+++ b/src/mbgl/style/expression/is_constant.cpp
@@ -10,8 +10,8 @@ constexpr static const char filter[] = "filter-";
bool isFeatureConstant(const Expression& expression) {
if (expression.getKind() == Kind::CompoundExpression) {
- auto e = static_cast<const CompoundExpressionBase*>(&expression);
- const std::string name = e->getName();
+ auto e = static_cast<const CompoundExpression*>(&expression);
+ const std::string name = e->getOperator();
optional<std::size_t> parameterCount = e->getParameterCount();
if (name == "get" && parameterCount && *parameterCount == 1) {
return false;