Core/Misc: minor typo and codestyle fixes

- Replace NULL uses in new code with nullptr
- Fix wrong (accumulated) load time log when loading calendar invites
- Make Creature::CanRegenerateHealth const as its just a getter
- Mark OnlyOnceAreaTriggerScript::OnTrigger as final in case someone wants to override that (you are supposed to use protected _OnTrigger hook)

(cherry picked from commit 78a1c687a2)
This commit is contained in:
ariel-
2017-12-13 14:43:12 -03:00
committed by funjoker
parent 72f99531b7
commit 88ae43fa51
10 changed files with 16 additions and 15 deletions

View File

@@ -456,7 +456,7 @@ class TC_GAME_API OnlyOnceAreaTriggerScript : public AreaTriggerScript
using AreaTriggerScript::AreaTriggerScript;
public:
bool OnTrigger(Player* player, AreaTriggerEntry const* trigger, bool entered) override;
bool OnTrigger(Player* player, AreaTriggerEntry const* trigger, bool entered) final override;
protected:
virtual bool _OnTrigger(Player* player, AreaTriggerEntry const* trigger, bool entered) = 0;