mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 03:06:29 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -115,7 +115,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
virtual void ReloadRange()
|
||||
void ReloadRange()
|
||||
{
|
||||
CmpPtr<ICmpValueModificationManager> cmpValueModificationManager(GetSystemEntity());
|
||||
if (!cmpValueModificationManager)
|
||||
|
||||
Reference in New Issue
Block a user