mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-10 23:43:58 +03:00
cmTargetDepend: pass by value
This commit is contained in:
1 parent
e6c606c7ba
commit
73bedfea38
1 file changed
+1
-1
@@ -30,7 +30,7 @@ public:
|
|||||||
operator cmGeneratorTarget const*() const { return this->Target; }
|
operator cmGeneratorTarget const*() const { return this->Target; }
|
||||||
cmGeneratorTarget const* operator->() const { return this->Target; }
|
cmGeneratorTarget const* operator->() const { return this->Target; }
|
||||||
cmGeneratorTarget const& operator*() const { return *this->Target; }
|
cmGeneratorTarget const& operator*() const { return *this->Target; }
|
||||||
friend bool operator<(cmTargetDepend const& l, cmTargetDepend const& r)
|
friend bool operator<(cmTargetDepend l, cmTargetDepend r)
|
||||||
{
|
{
|
||||||
return l.Target < r.Target;
|
return l.Target < r.Target;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user