diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-03-27 18:20:33 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-03-30 23:37:44 +0300 |
commit | b4e9c0bd119a154f45827d1a62ebaf8407758779 (patch) | |
tree | 96e7a2948f28740bd68ade0dbaa8354b75a5afa7 /src/mbgl/gl | |
parent | 31338c5d88264422da7ac1d2e8672b3ef45b54b0 (diff) | |
download | qtlocation-mapboxgl-b4e9c0bd119a154f45827d1a62ebaf8407758779.tar.gz |
[core] Fix bugprone-too-small-loop-variable errors
As reported by clang-tidy-8.
Diffstat (limited to 'src/mbgl/gl')
-rw-r--r-- | src/mbgl/gl/vertex_array.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mbgl/gl/vertex_array.cpp b/src/mbgl/gl/vertex_array.cpp index 831b118fce..e82e6e9765 100644 --- a/src/mbgl/gl/vertex_array.cpp +++ b/src/mbgl/gl/vertex_array.cpp @@ -12,6 +12,8 @@ void VertexArray::bind(Context& context, state->indexBuffer = indexBuffer.getResource<gl::IndexBufferResource>().buffer; state->bindings.reserve(bindings.size()); + + // NOLINTNEXTLINE(bugprone-too-small-loop-variable) for (AttributeLocation location = 0; location < bindings.size(); ++location) { if (state->bindings.size() <= location) { state->bindings.emplace_back(context, AttributeLocation(location)); |