mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
cmGraphEdge: remove custom copy ctor
Also, merge the other ctors using default args.
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user