summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2014-11-26 16:04:22 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2014-11-26 16:04:22 -0800
commit84c3191044362a9bb6742d3fc24b46af7efa9171 (patch)
treee0f14ff0a3b13935ac7e87080bf22b24a675763f /src
parent01ecbaf51ab24b8e1bb92e931361c4c6cd0e95b8 (diff)
downloadqtlocation-mapboxgl-84c3191044362a9bb6742d3fc24b46af7efa9171.tar.gz
Eliminate Map::getActiveSources()
Diffstat (limited to 'src')
-rw-r--r--src/map/map.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/map/map.cpp b/src/map/map.cpp
index 22eb0de69f..c6d376c13b 100644
--- a/src/map/map.cpp
+++ b/src/map/map.cpp
@@ -621,10 +621,6 @@ void Map::updateSources() {
});
}
-const std::set<util::ptr<StyleSource>> Map::getActiveSources() const {
- return activeSources;
-}
-
void Map::updateSources(const util::ptr<StyleLayerGroup> &group) {
if (!group) {
return;
@@ -642,7 +638,7 @@ void Map::updateSources(const util::ptr<StyleLayerGroup> &group) {
}
void Map::updateTiles() {
- for (const util::ptr<StyleSource> &source : getActiveSources()) {
+ for (const auto& source : activeSources) {
source->source->update(*this, getWorker(),
style, glyphAtlas, *glyphStore,
spriteAtlas, getSprite(),