Misc: Use override and final C++11 keywords in a few places (mostly scripts)

OVERRIDE and FINAL are TC macros (expand to nothing if compiler does not  support C++11)
This commit is contained in:
Nay
2013-07-06 20:21:45 +01:00
parent 0c911af24c
commit 3561ab98ba
577 changed files with 8945 additions and 8757 deletions

View File

@@ -35,7 +35,7 @@ class AT_example_areatrigger : public AreaTriggerScript
{
}
bool OnTrigger(Player* player, AreaTriggerEntry const* /*trigger*/)
bool OnTrigger(Player* player, AreaTriggerEntry const* /*trigger*/) OVERRIDE
{
player->Kill(player);
return true;
@@ -51,7 +51,7 @@ class ItemUse_example_item : public ItemScript
{
}
bool OnUse(Player* /*player*/, Item* /*item*/, SpellCastTargets const& /*targets*/)
bool OnUse(Player* /*player*/, Item* /*item*/, SpellCastTargets const& /*targets*/) OVERRIDE
{
sScriptMgr->LoadDatabase();
return true;
@@ -67,7 +67,7 @@ class GOHello_example_go_teleporter : public GameObjectScript
{
}
bool OnGossipHello(Player* player, GameObject* /*go*/)
bool OnGossipHello(Player* player, GameObject* /*go*/) OVERRIDE
{
player->TeleportTo(0, 1807.07f, 336.105f, 70.3975f, 0.0f);
return false;