mirror of
https://github.com/mangosfour/server.git
synced 2025-12-27 01:37:04 +00:00
[11588] Use override specifier on Update() methods
Note: override is new keyword in C++11 but VC++ already have override keyword with same behaviour long time. GCC support explicit overrides starting at 4.7. Added workaround for GCC versions < 4.7.
This commit is contained in:
parent
108a167c46
commit
f45e9ad680
12 changed files with 18 additions and 11 deletions
|
|
@ -42,7 +42,7 @@ class DynamicObject : public WorldObject
|
|||
void RemoveFromWorld();
|
||||
|
||||
bool Create(uint32 guidlow, Unit *caster, uint32 spellId, SpellEffectIndex effIndex, float x, float y, float z, int32 duration, float radius, DynamicObjectType type);
|
||||
void Update(uint32 update_diff, uint32 p_time);
|
||||
void Update(uint32 update_diff, uint32 p_time) override;
|
||||
void Delete();
|
||||
uint32 GetSpellId() const { return m_spellId; }
|
||||
SpellEffectIndex GetEffIndex() const { return m_effIndex; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue