From 65776ed09f85fb8b9fecdb89e8e67d6fe4101a5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Bolvansk=C3=BD?= Date: Thu, 28 Nov 2019 00:49:26 +0100 Subject: [PATCH] [ADT] Fixed -Wdeprecated-copy warning. NFCI --- unittests/ADT/TestGraph.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unittests/ADT/TestGraph.h b/unittests/ADT/TestGraph.h index 36d298255c1..3e6d4e14d5c 100644 --- a/unittests/ADT/TestGraph.h +++ b/unittests/ADT/TestGraph.h @@ -175,8 +175,8 @@ public: public: /// ChildIterator - Copy constructor. - ChildIterator(const ChildIterator& other) : FirstNode(other.FirstNode), - Children(other.Children) {} + ChildIterator(const ChildIterator &other) = default; + ChildIterator &operator=(const ChildIterator &other) = default; /// Comparison operators. bool operator==(const ChildIterator &other) const {