summaryrefslogtreecommitdiff
path: root/src/resources/map
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/map
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/map')
-rw-r--r--src/resources/map/mapheights.cpp4
-rw-r--r--src/resources/map/objectslayer.cpp4
-rw-r--r--src/resources/map/speciallayer.cpp1
3 files changed, 7 insertions, 2 deletions
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),