diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2017-04-21 19:42:45 (GMT) |
---|---|---|
committer | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2017-04-21 19:42:45 (GMT) |
commit | 3f677f207653b33ff55d82e4d03653e146df3910 (patch) | |
tree | 1511301f88266379f0e25d8fe0bfaacbd5d3705c | |
parent | b799ca42b8a2fdf7d92a75c0edc3292934a3926a (diff) | |
download | CMake-3f677f207653b33ff55d82e4d03653e146df3910.zip CMake-3f677f207653b33ff55d82e4d03653e146df3910.tar.gz CMake-3f677f207653b33ff55d82e4d03653e146df3910.tar.bz2 |
cmGraphEdge: remove custom copy ctor
Also, merge the other ctors using default args.
-rw-r--r-- | Source/cmGraphAdjacencyList.h | 17 |
1 files changed, 1 insertions, 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; } |