Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
remove another pointer cast
Browse files Browse the repository at this point in the history
  • Loading branch information
incanus committed Mar 17, 2015
1 parent 543b657 commit a878247
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/mbgl/map/annotation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,9 @@ std::vector<Tile::ID> AnnotationManager::removeAnnotations(std::vector<uint32_t>
for (auto& tile_it : annotationTiles) {
auto features_it = annotation->tileFeatures.find(tile_it.first);
if (features_it != annotation->tileFeatures.end()) {
auto layer = tile_it.second.second->getLayer(util::ANNOTATIONS_POINTS_LAYER_ID);
auto liveLayer = std::static_pointer_cast<LiveTileLayer>(layer);
auto layer = tile_it.second.second->getMutableLayer(util::ANNOTATIONS_POINTS_LAYER_ID);
auto& features = features_it->second;
liveLayer->removeFeature(features[0]);
layer->removeFeature(features[0]);
affectedTiles.push_back(tile_it.first);
}
}
Expand Down

0 comments on commit a878247

Please sign in to comment.