From cc7367cd619a9e05931016c451f6925ccfb56356 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 6 May 2016 19:23:17 +0300 Subject: Add missing base classes into constructors initialization lists. --- src/resources/animation/animation.cpp | 2 ++ src/resources/map/mapheights.cpp | 4 +++- src/resources/map/objectslayer.cpp | 4 +++- src/resources/map/speciallayer.cpp | 1 + 4 files changed, 9 insertions(+), 2 deletions(-) (limited to 'src/resources') diff --git a/src/resources/animation/animation.cpp b/src/resources/animation/animation.cpp index 6eac889ed..22ca96fd7 100644 --- a/src/resources/animation/animation.cpp +++ b/src/resources/animation/animation.cpp @@ -25,6 +25,7 @@ #include "debug.h" Animation::Animation() noexcept2 : + MemoryCounter(), mFrames(), mName("animation"), mDuration(0) @@ -32,6 +33,7 @@ Animation::Animation() noexcept2 : } Animation::Animation(const std::string &name) noexcept2 : + MemoryCounter(), mFrames(), mName(name), mDuration(0) diff --git a/src/resources/map/mapheights.cpp b/src/resources/map/mapheights.cpp index b785df72c..67f3b34ec 100644 --- a/src/resources/map/mapheights.cpp +++ b/src/resources/map/mapheights.cpp @@ -22,7 +22,9 @@ #include "debug.h" -MapHeights::MapHeights(const int width, const int height) : +MapHeights::MapHeights(const int width, + const int height) : + MemoryCounter(), mWidth(width), mHeight(height), mTiles(new uint8_t[mWidth * mHeight]) diff --git a/src/resources/map/objectslayer.cpp b/src/resources/map/objectslayer.cpp index 7af758d7f..b121fbcf9 100644 --- a/src/resources/map/objectslayer.cpp +++ b/src/resources/map/objectslayer.cpp @@ -24,7 +24,9 @@ #include "debug.h" -ObjectsLayer::ObjectsLayer(const unsigned width, const unsigned height) : +ObjectsLayer::ObjectsLayer(const unsigned width, + const unsigned height) : + MemoryCounter(), mTiles(new MapObjectList*[width * height]), mWidth(width), mHeight(height) diff --git a/src/resources/map/speciallayer.cpp b/src/resources/map/speciallayer.cpp index ddf5cc35e..c1ca865d0 100644 --- a/src/resources/map/speciallayer.cpp +++ b/src/resources/map/speciallayer.cpp @@ -33,6 +33,7 @@ SpecialLayer::SpecialLayer(const std::string &name, const int width, const int height) : + MemoryCounter(), mName(name), mTiles(new MapItem*[width * height]), mWidth(width), -- cgit v1.2.3-70-g09d2