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

@@ -4,7 +4,7 @@
namespace mbgl {
StaticVertexBuffer::StaticVertexBuffer(std::initializer_list<std::pair<int16_t, int16_t>> init) {
for (const std::pair<int16_t, int16_t> &vertex : init) {
for (const auto& vertex : init) {
vertex_type *vertices = static_cast<vertex_type *>(addElement());
vertices[0] = vertex.first;
vertices[1] = vertex.second;