diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2014-11-26 11:52:43 -0800 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2014-11-26 15:13:14 -0800 |
commit | 2cc5e011372931b81fbac191f3f77a1cf6712c88 (patch) | |
tree | 297ee1797f2178899f30c7b5a08a8cabe88fbb2e /src | |
parent | 167097936acbc77fe91bbf73ee59f447f8a10b9a (diff) | |
download | qtlocation-mapboxgl-2cc5e011372931b81fbac191f3f77a1cf6712c88.tar.gz |
auto
Diffstat (limited to 'src')
-rw-r--r-- | src/map/map.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/map.cpp b/src/map/map.cpp index eb0a48d8d6..0298a513e1 100644 --- a/src/map/map.cpp +++ b/src/map/map.cpp @@ -595,7 +595,7 @@ void Map::updateSources() { assert(uv_thread_self() == map_thread); // First, disable all existing sources. - for (const util::ptr<StyleSource> &source : activeSources) { + for (const auto& source : activeSources) { source->enabled = false; } @@ -603,7 +603,7 @@ void Map::updateSources() { updateSources(style->layers); // Then, construct or destroy the actual source object, depending on enabled state. - for (const util::ptr<StyleSource> &style_source : activeSources) { + for (const auto& style_source : activeSources) { if (style_source->enabled) { if (!style_source->source) { style_source->source = std::make_shared<Source>(style_source->info); |