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

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jerrrrycho
2026-10-10 14:55:56 +02:00
parent 79bd0c8e91
commit 8ce68e3d41
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;