[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:
zergtmn 2011-06-02 23:26:57 +06:00
parent 108a167c46
commit f45e9ad680
12 changed files with 18 additions and 11 deletions

View file

@ -599,7 +599,7 @@ class MANGOS_DLL_SPEC GameObject : public WorldObject
void RemoveFromWorld();
bool Create(uint32 guidlow, uint32 name_id, Map *map, uint32 phaseMask, float x, float y, float z, float ang, float rotation0, float rotation1, float rotation2, float rotation3, uint8 animprogress, GOState go_state);
void Update(uint32 update_diff, uint32 p_time);
void Update(uint32 update_diff, uint32 p_time) override;
GameObjectInfo const* GetGOInfo() const;
bool IsTransport() const;