summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2017-04-21 21:42:45 +0200
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2017-04-21 21:42:45 +0200
commit3f677f207653b33ff55d82e4d03653e146df3910 (patch)
tree1511301f88266379f0e25d8fe0bfaacbd5d3705c /Source
parentb799ca42b8a2fdf7d92a75c0edc3292934a3926a (diff)
downloadcmake-3f677f207653b33ff55d82e4d03653e146df3910.tar.gz
cmGraphEdge: remove custom copy ctor
Also, merge the other ctors using default args.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGraphAdjacencyList.h17
1 files changed, 1 insertions, 16 deletions
diff --git a/Source/cmGraphAdjacencyList.h b/Source/cmGraphAdjacencyList.h
index 527db164bb..46cf878711 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; }