diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-12-28 19:29:05 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-12-28 19:29:05 +0300 |
commit | 00f62e4f3db5aa737b4242a3d691d2ade299fc72 (patch) | |
tree | ee6fd7021bc7e4a69a1f9e69a4f3c3041f183f4d /src/being | |
parent | 1fc73fd6d8cb70e306b3bdeb375de1dd1e9458cc (diff) | |
download | manaverse-00f62e4f3db5aa737b4242a3d691d2ade299fc72.tar.gz manaverse-00f62e4f3db5aa737b4242a3d691d2ade299fc72.tar.bz2 manaverse-00f62e4f3db5aa737b4242a3d691d2ade299fc72.tar.xz manaverse-00f62e4f3db5aa737b4242a3d691d2ade299fc72.zip |
Add missing override and final to destructors.
Also remove some empty destructors.
Diffstat (limited to 'src/being')
-rw-r--r-- | src/being/actorsprite.h | 2 | ||||
-rw-r--r-- | src/being/being.h | 2 | ||||
-rw-r--r-- | src/being/castingeffect.h | 2 | ||||
-rw-r--r-- | src/being/compoundsprite.h | 2 | ||||
-rw-r--r-- | src/being/localplayer.h | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/src/being/actorsprite.h b/src/being/actorsprite.h index db912e059..6143fa085 100644 --- a/src/being/actorsprite.h +++ b/src/being/actorsprite.h @@ -58,7 +58,7 @@ class ActorSprite notfinal : public CompoundSprite, public Actor A_DELETE_COPY(ActorSprite) - virtual ~ActorSprite(); + ~ActorSprite() override; BeingId getId() const noexcept2 A_WARN_UNUSED { return mId; } diff --git a/src/being/being.h b/src/being/being.h index cfa00c7ba..226199186 100644 --- a/src/being/being.h +++ b/src/being/being.h @@ -110,7 +110,7 @@ class Being notfinal : public ActorSprite, A_DELETE_COPY(Being) - virtual ~Being(); + ~Being() override; ActorTypeT getType() const restrict2 noexcept2 override final A_WARN_UNUSED diff --git a/src/being/castingeffect.h b/src/being/castingeffect.h index 3a1d1a6b7..09cc8fe0f 100644 --- a/src/being/castingeffect.h +++ b/src/being/castingeffect.h @@ -41,7 +41,7 @@ class CastingEffect final : public Actor A_DELETE_COPY(CastingEffect) - virtual ~CastingEffect(); + ~CastingEffect() override final; virtual ActorTypeT getType() const noexcept2 A_WARN_UNUSED { return ActorType::Unknown; } diff --git a/src/being/compoundsprite.h b/src/being/compoundsprite.h index bf6679963..a0eecb3be 100644 --- a/src/being/compoundsprite.h +++ b/src/being/compoundsprite.h @@ -43,7 +43,7 @@ class CompoundSprite notfinal : public Sprite A_DELETE_COPY(CompoundSprite) - virtual ~CompoundSprite(); + ~CompoundSprite() override; bool reset() override final; diff --git a/src/being/localplayer.h b/src/being/localplayer.h index a262a6651..9278ec7c6 100644 --- a/src/being/localplayer.h +++ b/src/being/localplayer.h @@ -63,7 +63,7 @@ class LocalPlayer final : public Being, /** * Destructor. */ - ~LocalPlayer(); + ~LocalPlayer() override final; void logic() override final; |