mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 03:59:19 +02:00
refactor(sonar): mark converting constructors explicit (cpp:S1709)
sound_source and the gl::object conversion operators stay implicit; they are relied upon by copy-list-initialisation and GL calls. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -15,8 +15,8 @@ namespace gl
|
||||
static std::shared_ptr<gl::vao> vao;
|
||||
|
||||
public:
|
||||
postfx(const std::string &s);
|
||||
postfx(const shader &s);
|
||||
explicit postfx(const std::string &s);
|
||||
explicit postfx(const shader &s);
|
||||
|
||||
void attach();
|
||||
void apply(opengl_texture &src, framebuffer *dst);
|
||||
|
||||
@@ -25,7 +25,7 @@ protected:
|
||||
GLenum glenum_target(targets target) const;
|
||||
|
||||
public:
|
||||
query(targets target);
|
||||
explicit query(targets target);
|
||||
~query();
|
||||
|
||||
void begin();
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace gl
|
||||
#ifdef SHADERVALIDATOR_STANDALONE
|
||||
shader() = default;
|
||||
#endif
|
||||
shader(const std::string &filename);
|
||||
explicit shader(const std::string &filename);
|
||||
~shader();
|
||||
|
||||
enum class components_e
|
||||
@@ -85,7 +85,7 @@ namespace gl
|
||||
{
|
||||
public:
|
||||
program();
|
||||
program(std::vector<std::reference_wrapper<const gl::shader>>);
|
||||
explicit program(std::vector<std::reference_wrapper<const gl::shader>>);
|
||||
~program();
|
||||
|
||||
using bindable::bind;
|
||||
|
||||
Reference in New Issue
Block a user