From 3f677f207653b33ff55d82e4d03653e146df3910 Mon Sep 17 00:00:00 2001 From: Daniel Pfeifer Date: Fri, 21 Apr 2017 21:42:45 +0200 Subject: cmGraphEdge: remove custom copy ctor Also, merge the other ctors using default args. --- Source/cmGraphAdjacencyList.h | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/Source/cmGraphAdjacencyList.h b/Source/cmGraphAdjacencyList.h index 527db16..46cf878 100644 --- a/Source/cmGraphAdjacencyList.h +++ b/Source/cmGraphAdjacencyList.h @@ -15,26 +15,11 @@ class cmGraphEdge { public: - cmGraphEdge() - : Dest(0) - , Strong(true) - { - } - cmGraphEdge(int n) - : Dest(n) - , Strong(true) - { - } - cmGraphEdge(int n, bool s) + cmGraphEdge(int n = 0, bool s = true) : Dest(n) , Strong(s) { } - cmGraphEdge(cmGraphEdge const& r) - : Dest(r.Dest) - , Strong(r.Strong) - { - } operator int() const { return this->Dest; } bool IsStrong() const { return this->Strong; } -- cgit v0.12