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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user