From e066ec2e038405621a7de50e4cd735e548eb488d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 10 Oct 2012 00:16:37 +0300 Subject: Delete copy constructor in some classes. --- src/map.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/map.h') diff --git a/src/map.h b/src/map.h index 3927d50cc..803a400af 100644 --- a/src/map.h +++ b/src/map.h @@ -66,6 +66,8 @@ struct MetaTile final parentX(0), parentY(0), blockmask(0) {} + A_DELETE_COPY(MetaTile); + // Pathfinding members int Fcost; /**< Estimation of total path cost */ int Gcost; /**< Cost from start to this location */ @@ -86,6 +88,8 @@ class TileAnimation final ~TileAnimation(); + A_DELETE_COPY(TileAnimation); + bool update(const int ticks = 1); void addAffectedTile(MapLayer *const layer, const int index) @@ -156,6 +160,8 @@ class Map final : public Properties, public ConfigListener Map(const int width, const int height, const int tileWidth, const int tileHeight); + A_DELETE_COPY(Map); + /** * Destructor. */ -- cgit v1.2.3-70-g09d2