17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-17 19:09:25 +02:00

refactor(sonar): use std::size for array lengths (cpp:S7127)

This commit is contained in:
jerrrrycho
2026-10-10 16:22:49 +02:00
parent eb82bf360b
commit 9a674b4944
3 changed files with 10 additions and 10 deletions

View File

@@ -47,7 +47,7 @@ void gl::buffer::unbind(targets target)
void gl::buffer::unbind()
{
for (size_t i = 0; i < sizeof(binding_points) / sizeof(GLuint); i++)
for (size_t i = 0; i < std::size(binding_points); i++)
unbind((targets)i);
}