17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-29 12:47:30 +01:00

refactor(sonar): document intentionally empty functions (cpp:S1186)

This commit is contained in:
jerrrrycho
2026-10-10 15:56:34 +02:00
parent 9aa7e658ac
commit 4b55445a53
10 changed files with 35 additions and 34 deletions

View File

@@ -19,8 +19,8 @@ struct message
type_e type;
message(type_e t) : type(t) {}
virtual void serialize(std::ostream &stream) const {}
virtual void deserialize(std::istream &stream) {}
virtual void serialize(std::ostream &stream) const { /* message carries no payload */ }
virtual void deserialize(std::istream &stream) { /* message carries no payload */ }
virtual ~message() = default;
};