17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-03 12:00:22 +01:00

refactor(sonar): use override instead of redundant virtual (cpp:S3471)

This commit is contained in:
jerrrrycho
2026-10-10 14:55:56 +02:00
parent c26041f2e7
commit 3d46090e49
14 changed files with 213 additions and 213 deletions

View File

@@ -53,13 +53,13 @@ public:
private:
// methods
// radius() subclass details, calculates node's bounding radius
float radius_();
float radius_() override;
// serialize() subclass details, sends content of the subclass to provided stream
void serialize_( std::ostream &Output ) const;
void serialize_( std::ostream &Output ) const override;
// deserialize() subclass details, restores content of the subclass from provided stream
void deserialize_( std::istream &Input );
void deserialize_( std::istream &Input ) override;
// export() subclass details, sends basic content of the class in legacy (text) format to provided stream
void export_as_text_( std::ostream &Output ) const;
void export_as_text_( std::ostream &Output ) const override;
// members
int iKey { 0 };

View File

@@ -61,11 +61,11 @@ public:
private:
// methods
// serialize() subclass details, sends content of the subclass to provided stream
void serialize_( std::ostream &Output ) const;
void serialize_( std::ostream &Output ) const override;
// deserialize() subclass details, restores content of the subclass from provided stream
void deserialize_( std::istream &Input );
void deserialize_( std::istream &Input ) override;
// export() subclass details, sends basic content of the class in legacy (text) format to provided stream
void export_as_text_( std::ostream &Output ) const;
void export_as_text_( std::ostream &Output ) const override;
// members
// content

View File

@@ -78,13 +78,13 @@ private:
// methods
glm::vec3 wire_color() const;
// radius() subclass details, calculates node's bounding radius
float radius_();
float radius_() override;
// serialize() subclass details, sends content of the subclass to provided stream
void serialize_( std::ostream &Output ) const;
void serialize_( std::ostream &Output ) const override;
// deserialize() subclass details, restores content of the subclass from provided stream
void deserialize_( std::istream &Input );
void deserialize_( std::istream &Input ) override;
// export() subclass details, sends basic content of the class in legacy (text) format to provided stream
void export_as_text_( std::ostream &Output ) const;
void export_as_text_( std::ostream &Output ) const override;
};

View File

@@ -38,11 +38,11 @@ public:
private:
// methods
// serialize() subclass details, sends content of the subclass to provided stream
void serialize_( std::ostream &Output ) const;
void serialize_( std::ostream &Output ) const override;
// deserialize() subclass details, restores content of the subclass from provided stream
void deserialize_( std::istream &Input );
void deserialize_( std::istream &Input ) override;
// export() subclass details, sends basic content of the class in legacy (text) format to provided stream
void export_as_text_( std::ostream &Output ) const;
void export_as_text_( std::ostream &Output ) const override;
// members
double NominalVoltage = 0.0;