summaryrefslogtreecommitdiff
path: root/src/mbgl/style/layers/heatmap_layer_impl.cpp
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2018-07-24 20:58:54 +0300
committerBruno de Oliveira Abinader <bruno@mapbox.com>2018-08-08 14:14:34 +0300
commit83bd4c213583058340d0606f2d24c85489091ccf (patch)
tree90086452ff7bd0d3bc58f8670b76e96df52d7d6a /src/mbgl/style/layers/heatmap_layer_impl.cpp
parent15a26231474d08e3884e424601b609c53d7ef086 (diff)
downloadqtlocation-mapboxgl-83bd4c213583058340d0606f2d24c85489091ccf.tar.gz
[core] Replace remaining dynamic_cast with static_cast
Diffstat (limited to 'src/mbgl/style/layers/heatmap_layer_impl.cpp')
-rw-r--r--src/mbgl/style/layers/heatmap_layer_impl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/style/layers/heatmap_layer_impl.cpp b/src/mbgl/style/layers/heatmap_layer_impl.cpp
index af20888d9d..8fd0cf72b2 100644
--- a/src/mbgl/style/layers/heatmap_layer_impl.cpp
+++ b/src/mbgl/style/layers/heatmap_layer_impl.cpp
@@ -4,7 +4,7 @@ namespace mbgl {
namespace style {
bool HeatmapLayer::Impl::hasLayoutDifference(const Layer::Impl& other) const {
- assert(dynamic_cast<const HeatmapLayer::Impl*>(&other));
+ assert(other.type == LayerType::Heatmap);
const auto& impl = static_cast<const style::HeatmapLayer::Impl&>(other);
return filter != impl.filter ||
visibility != impl.visibility ||