17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-01 12:42:09 +01:00

refactor(sonar): construct elements in place with emplace_back (cpp:S6003)

This commit is contained in:
jerrrrycho
2026-10-10 15:06:57 +02:00
parent 178fcc61a2
commit d325a54756
4 changed files with 7 additions and 7 deletions

View File

@@ -31,7 +31,7 @@ void gl::vao::setup_attrib(gl::buffer &buffer, int attrib, int size, int type, i
else {
if (attrib == 0)
params.clear();
params.push_back({buffer, attrib, size, type, stride, offset});
params.emplace_back(buffer, attrib, size, type, stride, offset);
active = nullptr;
}
}