From 00f62e4f3db5aa737b4242a3d691d2ade299fc72 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 28 Dec 2017 19:29:05 +0300 Subject: Add missing override and final to destructors. Also remove some empty destructors. --- src/being/actorsprite.h | 2 +- src/being/being.h | 2 +- src/being/castingeffect.h | 2 +- src/being/compoundsprite.h | 2 +- src/being/localplayer.h | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/being') 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; -- cgit v1.2.3-70-g09d2