From fa36110dfbdc05b511a3f85461eaca4a29e446a1 Mon Sep 17 00:00:00 2001 From: Bruno de Oliveira Abinader Date: Wed, 10 May 2017 18:51:04 +0300 Subject: [tidy] modernize-use-auto --- include/mbgl/style/conversion/property_setter.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/mbgl/style/conversion') diff --git a/include/mbgl/style/conversion/property_setter.hpp b/include/mbgl/style/conversion/property_setter.hpp index 1f537f3c4d..8658fd60b0 100644 --- a/include/mbgl/style/conversion/property_setter.hpp +++ b/include/mbgl/style/conversion/property_setter.hpp @@ -21,7 +21,7 @@ using PaintPropertySetter = optional (*) (Layer&, const V&, const optiona template optional setLayoutProperty(Layer& layer, const V& value) { - L* typedLayer = layer.as(); + auto* typedLayer = layer.as(); if (!typedLayer) { return Error { "layer doesn't support this property" }; } @@ -38,7 +38,7 @@ optional setLayoutProperty(Layer& layer, const V& value) { template &)> optional setPaintProperty(Layer& layer, const V& value, const optional& klass) { - L* typedLayer = layer.as(); + auto* typedLayer = layer.as(); if (!typedLayer) { return Error { "layer doesn't support this property" }; } @@ -55,7 +55,7 @@ optional setPaintProperty(Layer& layer, const V& value, const optional&)> optional setTransition(Layer& layer, const V& value, const optional& klass) { - L* typedLayer = layer.as(); + auto* typedLayer = layer.as(); if (!typedLayer) { return Error { "layer doesn't support this property" }; } -- cgit v1.2.1