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/particle/particle.h | 2 +- src/particle/particlelist.h | 2 +- src/particle/particlevector.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/particle') diff --git a/src/particle/particle.h b/src/particle/particle.h index 4ec3b29c2..03f6eb847 100644 --- a/src/particle/particle.h +++ b/src/particle/particle.h @@ -53,7 +53,7 @@ class Particle notfinal : public Actor /** * Destructor. */ - virtual ~Particle(); + ~Particle() override; /** * Deletes all child particles and emitters. diff --git a/src/particle/particlelist.h b/src/particle/particlelist.h index 6a1b09afd..a370b5569 100644 --- a/src/particle/particlelist.h +++ b/src/particle/particlelist.h @@ -42,7 +42,7 @@ class ParticleList final : public ParticleContainer A_DELETE_COPY(ParticleList) - ~ParticleList(); + ~ParticleList() override final; /** * Takes control of and adds a particle diff --git a/src/particle/particlevector.h b/src/particle/particlevector.h index ab0c886a8..d7a0be27c 100644 --- a/src/particle/particlevector.h +++ b/src/particle/particlevector.h @@ -42,7 +42,7 @@ class ParticleVector final : public ParticleContainer A_DELETE_COPY(ParticleVector) - ~ParticleVector(); + ~ParticleVector() override final; /** * Sets a particle at a specified index. Kills the previous particle -- cgit v1.2.3-70-g09d2