mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-18 17:19:18 +02:00
refactor(sonar): pass expensive-to-copy parameters by const reference (cpp:S1238)
Signatures declared in files touched by PR 206 (Driver.h, EU07.cpp) and virtual overrides are left unchanged.
This commit is contained in:
@@ -368,7 +368,7 @@ gl::program::program()
|
||||
**this = glCreateProgram();
|
||||
}
|
||||
|
||||
gl::program::program(std::vector<std::reference_wrapper<const gl::shader>> shaders) : program()
|
||||
gl::program::program(std::vector<std::reference_wrapper<const gl::shader>> const &shaders) : program()
|
||||
{
|
||||
for (const gl::shader &s : shaders)
|
||||
attach(s);
|
||||
|
||||
Reference in New Issue
Block a user