summaryrefslogtreecommitdiff
path: root/include/mbgl/style/expression/is_constant.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/style/expression/is_constant.hpp')
-rw-r--r--include/mbgl/style/expression/is_constant.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mbgl/style/expression/is_constant.hpp b/include/mbgl/style/expression/is_constant.hpp
index 065fa30db1..bd758977d8 100644
--- a/include/mbgl/style/expression/is_constant.hpp
+++ b/include/mbgl/style/expression/is_constant.hpp
@@ -10,9 +10,9 @@ namespace expression {
template <typename T>
bool isGlobalPropertyConstant(const Expression& expression, const T& properties) {
if (expression.getKind() == Kind::CompoundExpression) {
- auto e = static_cast<const CompoundExpressionBase*>(&expression);
+ auto e = static_cast<const CompoundExpression*>(&expression);
for (const std::string& property : properties) {
- if (e->getName() == property) {
+ if (e->getOperator() == property) {
return false;
}
}