summaryrefslogtreecommitdiff
path: root/src/mbgl/style/class_properties.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/style/class_properties.hpp')
-rw-r--r--src/mbgl/style/class_properties.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mbgl/style/class_properties.hpp b/src/mbgl/style/class_properties.hpp
index 84b91d769e..153fc11ee7 100644
--- a/src/mbgl/style/class_properties.hpp
+++ b/src/mbgl/style/class_properties.hpp
@@ -34,8 +34,7 @@ public:
void calculate(PropertyKey key, T& target, const float z) const {
auto it = properties.find(key);
if (it != properties.end()) {
- const PropertyEvaluator<T> evaluator(z);
- target = mapbox::util::apply_visitor(evaluator, it->second);
+ target = mapbox::util::apply_visitor(PropertyEvaluator<T>(StyleCalculationParameters(z)), it->second);
}
}