mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 05:09:20 +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. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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);
|
||||
|
||||
@@ -85,7 +85,7 @@ namespace gl
|
||||
{
|
||||
public:
|
||||
program();
|
||||
explicit program(std::vector<std::reference_wrapper<const gl::shader>>);
|
||||
explicit program(std::vector<std::reference_wrapper<const gl::shader>> const &);
|
||||
~program();
|
||||
|
||||
using bindable::bind;
|
||||
|
||||
Reference in New Issue
Block a user