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/maplayer.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/maplayer.h') diff --git a/src/maplayer.h b/src/maplayer.h index 59a612cbb..75dba70b9 100644 --- a/src/maplayer.h +++ b/src/maplayer.h @@ -46,6 +46,8 @@ class MapRowVertexes final images.reserve(30); } + A_DELETE_COPY(MapRowVertexes); + ~MapRowVertexes(); MepRowImages images; @@ -66,6 +68,11 @@ class MapObject final class MapObjectList final { public: + MapObjectList() + { } + + A_DELETE_COPY(MapObjectList); + std::vector objects; }; @@ -86,6 +93,8 @@ class MapLayer final: public ConfigListener MapLayer(const int x, const int y, const int width, const int height, const bool isFringeLayer); + A_DELETE_COPY(MapLayer); + /** * Destructor. */ @@ -189,6 +198,8 @@ class SpecialLayer final SpecialLayer(const int width, const int height, const bool drawSprites = false); + A_DELETE_COPY(SpecialLayer); + ~SpecialLayer(); void draw(Graphics *const graphics, int startX, int startY, @@ -248,6 +259,8 @@ class MapItem final MapItem(const int type, std::string comment, const int x, const int y); + A_DELETE_COPY(MapItem); + ~MapItem(); int getType() const @@ -292,6 +305,8 @@ class ObjectsLayer final public: ObjectsLayer(const unsigned width, const unsigned height); + A_DELETE_COPY(ObjectsLayer); + ~ObjectsLayer(); void addObject(std::string name, const int type, -- cgit v1.2.3-60-g2f50