summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2017-03-20 12:46:37 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2017-04-18 08:49:57 -0700
commitefa6c01956682009b163082f92a3ba8462a53fbf (patch)
tree5c2e4ea707f6f8f8b0d941769656cfb93ab59c71 /src
parent589d71d7adbe4e4dac3e9a7ec97378b2b9a69d93 (diff)
downloadqtlocation-mapboxgl-efa6c01956682009b163082f92a3ba8462a53fbf.tar.gz
[core] Remove unnecessary Source::Impl::enabled assignment
This flag will get set automatically by Style::recalculate.
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/annotation/annotation_manager.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mbgl/annotation/annotation_manager.cpp b/src/mbgl/annotation/annotation_manager.cpp
index ed1518fb7b..537ac70156 100644
--- a/src/mbgl/annotation/annotation_manager.cpp
+++ b/src/mbgl/annotation/annotation_manager.cpp
@@ -176,9 +176,7 @@ std::unique_ptr<AnnotationTileData> AnnotationManager::getTileData(const Canonic
void AnnotationManager::updateStyle(Style& style) {
// Create annotation source, point layer, and point bucket
if (!style.getSource(SourceID)) {
- std::unique_ptr<Source> source = std::make_unique<AnnotationSource>();
- source->baseImpl->enabled = true;
- style.addSource(std::move(source));
+ style.addSource(std::make_unique<AnnotationSource>());
std::unique_ptr<SymbolLayer> layer = std::make_unique<SymbolLayer>(PointLayerID, SourceID);