summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-05-06 19:23:17 +0300
committerAndrei Karas <akaras@inbox.ru>2016-05-06 19:23:17 +0300
commitcc7367cd619a9e05931016c451f6925ccfb56356 (patch)
tree3cc73b06589efaad1ac7108a557f160749eb282d /src/resources
parent1f9f3f097b7acecda205fbc5a3f4846b84c00ab5 (diff)
downloadplus-cc7367cd619a9e05931016c451f6925ccfb56356.tar.gz
plus-cc7367cd619a9e05931016c451f6925ccfb56356.tar.bz2
plus-cc7367cd619a9e05931016c451f6925ccfb56356.tar.xz
plus-cc7367cd619a9e05931016c451f6925ccfb56356.zip
Add missing base classes into constructors initialization lists.
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/animation/animation.cpp2
-rw-r--r--src/resources/map/mapheights.cpp4
-rw-r--r--src/resources/map/objectslayer.cpp4
-rw-r--r--src/resources/map/speciallayer.cpp1
4 files changed, 9 insertions, 2 deletions
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),