mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-07 04:02:23 +03:00
cmGraphEdge: remove custom copy ctor
Also, merge the other ctors using default args.
This commit is contained in:
1 parent
b799ca42b8
commit
3f677f2076
1 file changed
+1
-16
@@ -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