replace iterator variable types with auto

This commit is contained in:
Konstantin Käfer
2015-04-01 16:42:20 +02:00
parent cc97675ca1
commit 220ebf61dd
22 changed files with 55 additions and 55 deletions

View File

@@ -226,7 +226,7 @@ void Painter::render(const Style& style, const std::set<util::ptr<StyleSource>>&
// Update all clipping IDs.
ClipIDGenerator generator;
for (const util::ptr<StyleSource> &source : sources) {
for (const auto& source : sources) {
generator.update(source->source->getLoadedTiles());
source->source->updateMatrices(projMatrix, state);
}
@@ -246,7 +246,7 @@ void Painter::render(const Style& style, const std::set<util::ptr<StyleSource>>&
// This guarantees that we have at least one function per tile called.
// When only rendering layers via the stylesheet, it's possible that we don't
// ever visit a tile during rendering.
for (const util::ptr<StyleSource> &source : sources) {
for (const auto& source : sources) {
source->source->finishRender(*this);
}
}