mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-29 23:17:30 +01:00
fix(sonar): give polymorphic base classes virtual destructors (cpp:S1235)
This commit is contained in:
@@ -21,6 +21,7 @@ struct message
|
||||
message(type_e t) : type(t) {}
|
||||
virtual void serialize(std::ostream &stream) const {}
|
||||
virtual void deserialize(std::istream &stream) {}
|
||||
virtual ~message() = default;
|
||||
};
|
||||
|
||||
struct client_hello : public message
|
||||
|
||||
Reference in New Issue
Block a user