diff options
author | David Tardon <dtardon@redhat.com> | 2017-12-27 15:50:02 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2017-12-27 15:50:02 +0100 |
commit | af8c02038bddfa1a20b1d67093d6a4a919da8388 (patch) | |
tree | 7a9fec10d24c7a073ea484fa51b8d27f97c84e0b | |
parent | 68e26d64d12f5239e8c71f723f4058c64afe9234 (diff) |
use C++11 syntax to disable copying
Change-Id: Ie6433cff226b72706c915b2070767d72e94d40ff
-rw-r--r-- | src/lib/ShapeGroupElement.h | 4 |
1 files 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<ShapeGroupElement> m_parent; std::vector<std::shared_ptr<ShapeGroupElement>> 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<ShapeGroupElement> &parent, unsigned seqNum); |