mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 05:09:20 +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:
@@ -11,7 +11,7 @@ class popup
|
||||
static int id;
|
||||
|
||||
public:
|
||||
popup(ui_panel &panel);
|
||||
explicit popup(ui_panel &panel);
|
||||
virtual ~popup();
|
||||
|
||||
virtual bool render();
|
||||
|
||||
@@ -8,7 +8,7 @@ class vehiclelist_panel : public ui_panel
|
||||
bool m_first_show = true;
|
||||
|
||||
public:
|
||||
vehiclelist_panel(ui_layer &parent);
|
||||
explicit vehiclelist_panel(ui_layer &parent);
|
||||
|
||||
void render_contents() override;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user