diff --git a/src/mbgl/renderer/paint_property_binder.hpp b/src/mbgl/renderer/paint_property_binder.hpp index 82c36399a..cf0a71847 100644 --- a/src/mbgl/renderer/paint_property_binder.hpp +++ b/src/mbgl/renderer/paint_property_binder.hpp @@ -72,7 +72,7 @@ std::array zoomInterpolatedAttributeValue(const std::array Note that the shader source varies depending on whether we're using a uniform or attribute. Like GL JS, we dynamically compile shaders at runtime to accomodate this. */ -template +template class PaintPropertyBinder { public: @@ -233,18 +233,18 @@ private: optional> vertexBuffer; }; -template -std::unique_ptr> -PaintPropertyBinder::create(const PossiblyEvaluatedPropertyValue& value, float zoom, T defaultValue) { +template +std::unique_ptr> +PaintPropertyBinder::create(const PossiblyEvaluatedPropertyValue& value, float zoom, T defaultValue) { return value.match( - [&] (const T& constant) -> std::unique_ptr> { - return std::make_unique>(constant); + [&] (const T& constant) -> std::unique_ptr> { + return std::make_unique>(constant); }, - [&] (const style::PropertyExpression& expression) -> std::unique_ptr> { + [&] (const style::PropertyExpression& expression) -> std::unique_ptr> { if (expression.isZoomConstant()) { - return std::make_unique>(expression, defaultValue); + return std::make_unique>(expression, defaultValue); } else { - return std::make_unique>(expression, zoom, defaultValue); + return std::make_unique>(expression, zoom, defaultValue); } } );