summaryrefslogtreecommitdiff
path: root/src/resources/map
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-25 13:27:25 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-25 13:27:25 +0300
commitd671eb90eb2ba431ba15123309368520608e5ba3 (patch)
treec2658830de37e50d7c4b66a63e2164c666c2bf25 /src/resources/map
parent7f60553aa81fe9e1889b1af12e0fe7db8d68f074 (diff)
downloadmanaplus-d671eb90eb2ba431ba15123309368520608e5ba3.tar.gz
manaplus-d671eb90eb2ba431ba15123309368520608e5ba3.tar.bz2
manaplus-d671eb90eb2ba431ba15123309368520608e5ba3.tar.xz
manaplus-d671eb90eb2ba431ba15123309368520608e5ba3.zip
Fix align in constructors.
Diffstat (limited to 'src/resources/map')
-rw-r--r--src/resources/map/location.h2
-rw-r--r--src/resources/map/mapitem.cpp8
-rw-r--r--src/resources/map/maplayer.cpp6
-rw-r--r--src/resources/map/tileanimation.cpp2
-rw-r--r--src/resources/map/tileset.h8
5 files changed, 16 insertions, 10 deletions
diff --git a/src/resources/map/location.h b/src/resources/map/location.h
index 7c1995dba..f2c9af323 100644
--- a/src/resources/map/location.h
+++ b/src/resources/map/location.h
@@ -35,7 +35,7 @@ struct Location final
/**
* Constructor.
*/
- Location(const int px, const int py, MetaTile *const ptile):
+ Location(const int px, const int py, MetaTile *const ptile) :
x(px), y(py), tile(ptile)
{}
diff --git a/src/resources/map/mapitem.cpp b/src/resources/map/mapitem.cpp
index e035d88b3..bb3b0766c 100644
--- a/src/resources/map/mapitem.cpp
+++ b/src/resources/map/mapitem.cpp
@@ -33,7 +33,7 @@
#include "debug.h"
-MapItem::MapItem():
+MapItem::MapItem() :
mImage(nullptr),
mComment(),
mName(),
@@ -44,7 +44,7 @@ MapItem::MapItem():
setType(MapItemType::EMPTY);
}
-MapItem::MapItem(const int type):
+MapItem::MapItem(const int type) :
mImage(nullptr),
mComment(),
mName(),
@@ -55,7 +55,7 @@ MapItem::MapItem(const int type):
setType(type);
}
-MapItem::MapItem(const int type, std::string comment):
+MapItem::MapItem(const int type, std::string comment) :
mImage(nullptr),
mComment(comment),
mName(),
@@ -67,7 +67,7 @@ MapItem::MapItem(const int type, std::string comment):
}
MapItem::MapItem(const int type, std::string comment,
- const int x, const int y):
+ const int x, const int y) :
mImage(nullptr),
mComment(comment),
mName(),
diff --git a/src/resources/map/maplayer.cpp b/src/resources/map/maplayer.cpp
index a5f2f056d..51e076e81 100644
--- a/src/resources/map/maplayer.cpp
+++ b/src/resources/map/maplayer.cpp
@@ -45,8 +45,10 @@
#include "debug.h"
-MapLayer::MapLayer(const int x, const int y, const int width, const int height,
- const bool fringeLayer, const int mask):
+MapLayer::MapLayer(const int x, const int y,
+ const int width, const int height,
+ const bool fringeLayer,
+ const int mask) :
mX(x),
mY(y),
mWidth(width),
diff --git a/src/resources/map/tileanimation.cpp b/src/resources/map/tileanimation.cpp
index 6dfe6f0be..8378a0f4e 100644
--- a/src/resources/map/tileanimation.cpp
+++ b/src/resources/map/tileanimation.cpp
@@ -30,7 +30,7 @@
#include "debug.h"
-TileAnimation::TileAnimation(Animation *const ani):
+TileAnimation::TileAnimation(Animation *const ani) :
mAffected(),
mAnimation(new SimpleAnimation(ani)),
mLastImage(nullptr)
diff --git a/src/resources/map/tileset.h b/src/resources/map/tileset.h
index 312896c62..fa1291ba2 100644
--- a/src/resources/map/tileset.h
+++ b/src/resources/map/tileset.h
@@ -36,8 +36,12 @@ class Tileset final : public ImageSet
/**
* Constructor.
*/
- Tileset(Image *const img, const int w, const int h, const int firstGid,
- const int margin, const int spacing):
+ Tileset(Image *const img,
+ const int w,
+ const int h,
+ const int firstGid,
+ const int margin,
+ const int spacing) :
ImageSet(img, w, h, margin, spacing),
mFirstGid(firstGid),
mProperties()