mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-30 19:00:28 +01: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:
@@ -18,7 +18,7 @@ struct message
|
||||
|
||||
type_e type;
|
||||
|
||||
message(type_e t) : type(t) {}
|
||||
explicit message(type_e t) : type(t) {}
|
||||
virtual void serialize(std::ostream &stream) const { /* message carries no payload */ }
|
||||
virtual void deserialize(std::istream &stream) { /* message carries no payload */ }
|
||||
virtual ~message() = default;
|
||||
|
||||
Reference in New Issue
Block a user