From af8c02038bddfa1a20b1d67093d6a4a919da8388 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Wed, 27 Dec 2017 15:50:02 +0100 Subject: use C++11 syntax to disable copying Change-Id: Ie6433cff226b72706c915b2070767d72e94d40ff --- src/lib/ShapeGroupElement.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/ShapeGroupElement.h b/src/lib/ShapeGroupElement.h index a51fedc..1be6ed5 100644 --- a/src/lib/ShapeGroupElement.h +++ b/src/lib/ShapeGroupElement.h @@ -25,8 +25,8 @@ class ShapeGroupElement std::weak_ptr m_parent; std::vector> m_children; unsigned m_seqNum; - ShapeGroupElement &operator=(const ShapeGroupElement &); //not implemented - ShapeGroupElement(const ShapeGroupElement &); //not implemented + ShapeGroupElement &operator=(const ShapeGroupElement &) = delete; + ShapeGroupElement(const ShapeGroupElement &) = delete; VectorTransformation2D m_transform; ShapeGroupElement(const std::shared_ptr &parent, unsigned seqNum); -- cgit v1.2.3