Fix -Wunnecessary-virtual-specifier warnings

Commit 3eee3a444d added final keyword to
simulation classes but left virtual keywords in place.

Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
Ralph Sennhauser
2025-11-10 11:20:56 +01:00
parent 66738c12a1
commit 9ffbf15ee1
5 changed files with 5 additions and 5 deletions
@@ -521,7 +521,7 @@ public:
return GetObstructionSquare(out, false);
}
virtual bool GetObstructionSquare(ICmpObstructionManager::ObstructionSquare& out, bool previousPosition) const
bool GetObstructionSquare(ICmpObstructionManager::ObstructionSquare& out, bool previousPosition) const
{
CmpPtr<ICmpPosition> cmpPosition(GetEntityHandle());
if (!cmpPosition)
@@ -83,7 +83,7 @@ public:
* Must be called whenever m_Displayed or the size of m_RallyPoints change,
* to determine whether we need to respond to render messages.
*/
virtual void UpdateMessageSubscriptions();
void UpdateMessageSubscriptions();
void AddPosition_wrapper(const CFixedVector2D& pos) override;
@@ -1357,7 +1357,7 @@ public:
}
virtual std::vector<entity_pos_t> getParabolicRangeForm(CFixedVector3D pos, entity_pos_t maxRange, entity_pos_t cutoff, entity_pos_t minAngle, entity_pos_t maxAngle, int numberOfSteps) const
std::vector<entity_pos_t> getParabolicRangeForm(CFixedVector3D pos, entity_pos_t maxRange, entity_pos_t cutoff, entity_pos_t minAngle, entity_pos_t maxAngle, int numberOfSteps) const
{
std::vector<entity_pos_t> r;
@@ -505,7 +505,7 @@ public:
m_Acceleration = acceleration;
}
virtual entity_pos_t GetWeight() const
entity_pos_t GetWeight() const
{
return m_TemplateWeight;
}
+1 -1
View File
@@ -115,7 +115,7 @@ public:
}
}
virtual void ReloadRange()
void ReloadRange()
{
CmpPtr<ICmpValueModificationManager> cmpValueModificationManager(GetSystemEntity());
if (!cmpValueModificationManager)