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:
@@ -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 };
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user