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/resources/map/map.h | 2 +- src/resources/map/mapheights.h | 2 +- src/resources/map/maplayer.h | 2 +- src/resources/map/objectslayer.h | 2 +- src/resources/map/speciallayer.h | 2 +- src/resources/map/walklayer.h | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/resources/map') diff --git a/src/resources/map/map.h b/src/resources/map/map.h index 39e4e651e..4a3dc9f48 100644 --- a/src/resources/map/map.h +++ b/src/resources/map/map.h @@ -84,7 +84,7 @@ class Map final : public Properties, /** * Destructor. */ - ~Map(); + ~Map() override final; /** * Initialize ambient layers. Has to be called after all the properties diff --git a/src/resources/map/mapheights.h b/src/resources/map/mapheights.h index ef8c4151b..d4bf90632 100644 --- a/src/resources/map/mapheights.h +++ b/src/resources/map/mapheights.h @@ -36,7 +36,7 @@ class MapHeights final : public MemoryCounter A_DELETE_COPY(MapHeights) - ~MapHeights(); + ~MapHeights() override final; void setHeight(const int x, const int y, const uint8_t height); diff --git a/src/resources/map/maplayer.h b/src/resources/map/maplayer.h index c21ac33bc..87ddb96ec 100644 --- a/src/resources/map/maplayer.h +++ b/src/resources/map/maplayer.h @@ -69,7 +69,7 @@ class MapLayer final: public MemoryCounter, public ConfigListener /** * Destructor. */ - ~MapLayer(); + ~MapLayer() override final; /** * Set tile image, with x and y in layer coordinates. diff --git a/src/resources/map/objectslayer.h b/src/resources/map/objectslayer.h index 3deed3d36..4894b3469 100644 --- a/src/resources/map/objectslayer.h +++ b/src/resources/map/objectslayer.h @@ -34,7 +34,7 @@ class ObjectsLayer final : public MemoryCounter A_DELETE_COPY(ObjectsLayer) - ~ObjectsLayer(); + ~ObjectsLayer() override final; void addObject(const std::string &name, const int type, const unsigned x, const unsigned y, diff --git a/src/resources/map/speciallayer.h b/src/resources/map/speciallayer.h index 8f6f914d3..20ade5f73 100644 --- a/src/resources/map/speciallayer.h +++ b/src/resources/map/speciallayer.h @@ -42,7 +42,7 @@ class SpecialLayer final : public MemoryCounter A_DELETE_COPY(SpecialLayer) - ~SpecialLayer(); + ~SpecialLayer() override final; void draw(Graphics *const graphics, int startX, int startY, diff --git a/src/resources/map/walklayer.h b/src/resources/map/walklayer.h index 4e5cc9c65..33cbc2bb4 100644 --- a/src/resources/map/walklayer.h +++ b/src/resources/map/walklayer.h @@ -32,7 +32,7 @@ class WalkLayer final : public Resource A_DELETE_COPY(WalkLayer) - ~WalkLayer(); + ~WalkLayer() override final; int *getData() { return mTiles; } -- cgit v1.2.3-70-g09d2