diff options
author | Ivo van Dongen <info@ivovandongen.nl> | 2017-05-22 12:18:16 +0300 |
---|---|---|
committer | Ivo van Dongen <ivovandongen@users.noreply.github.com> | 2017-05-23 10:06:56 +0300 |
commit | 2dd8553096d76c69e3492b1f3c657a1dcba8a04e (patch) | |
tree | 8deed1747d4370cc38e9c7c0452afe5f89d5de47 /include | |
parent | 67811c9f4820383fe1b7fa7d88ef4d74f9adfc8f (diff) | |
download | qtlocation-mapboxgl-2dd8553096d76c69e3492b1f3c657a1dcba8a04e.tar.gz |
[core] forward visitor in layer::accept
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/style/layer.hpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/mbgl/style/layer.hpp b/include/mbgl/style/layer.hpp index 61706d400b..02153ad092 100644 --- a/include/mbgl/style/layer.hpp +++ b/include/mbgl/style/layer.hpp @@ -73,21 +73,21 @@ public: auto accept(V&& visitor) { switch (getType()) { case LayerType::Fill: - return visitor(*as<FillLayer>()); + return std::forward<V>(visitor)(*as<FillLayer>()); case LayerType::Line: - return visitor(*as<LineLayer>()); + return std::forward<V>(visitor)(*as<LineLayer>()); case LayerType::Circle: - return visitor(*as<CircleLayer>()); + return std::forward<V>(visitor)(*as<CircleLayer>()); case LayerType::Symbol: - return visitor(*as<SymbolLayer>()); + return std::forward<V>(visitor)(*as<SymbolLayer>()); case LayerType::Raster: - return visitor(*as<RasterLayer>()); + return std::forward<V>(visitor)(*as<RasterLayer>()); case LayerType::Background: - return visitor(*as<BackgroundLayer>()); + return std::forward<V>(visitor)(*as<BackgroundLayer>()); case LayerType::Custom: - return visitor(*as<CustomLayer>()); + return std::forward<V>(visitor)(*as<CustomLayer>()); case LayerType::FillExtrusion: - return visitor(*as<FillExtrusionLayer>()); + return std::forward<V>(visitor)(*as<FillExtrusionLayer>()); } } |