summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnsis Brammanis <ansis@mapbox.com>2019-10-01 16:00:24 -0400
committerAnsis Brammanis <ansis@mapbox.com>2019-10-01 16:00:24 -0400
commit0b0bd8b49094517fd3d3427bc65844312064f57c (patch)
tree40c8e6c8c4681dc874dba85bc12f38eb3876422f
parent3ab40611a51e1917c1aea395b44e5efc91e3359e (diff)
downloadqtlocation-mapboxgl-0b0bd8b49094517fd3d3427bc65844312064f57c.tar.gz
fix formatting
-rw-r--r--src/mbgl/renderer/paint_property_binder.hpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mbgl/renderer/paint_property_binder.hpp b/src/mbgl/renderer/paint_property_binder.hpp
index 402827de3c..a93bf2e541 100644
--- a/src/mbgl/renderer/paint_property_binder.hpp
+++ b/src/mbgl/renderer/paint_property_binder.hpp
@@ -370,11 +370,10 @@ public:
}
std::tuple<float> interpolationFactor(float currentZoom) const override {
- const float possiblyRoundedZoom = expression.useIntegerZoom ?
- std::floor(currentZoom) :
- currentZoom;
+ const float possiblyRoundedZoom = expression.useIntegerZoom ? std::floor(currentZoom) : currentZoom;
- return std::tuple<float> { std::fmax(0.0, std::fmin(1.0, expression.interpolationFactor(zoomRange, possiblyRoundedZoom))) };
+ return std::tuple<float> {
+ std::fmax(0.0, std::fmin(1.0, expression.interpolationFactor(zoomRange, possiblyRoundedZoom)))};
}
std::tuple<T> uniformValue(const PossiblyEvaluatedPropertyValue<T>& currentValue) const override {