diff options
author | Brad King <brad.king@kitware.com> | 2013-12-19 15:13:18 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2013-12-19 15:13:18 (GMT) |
commit | 2e075b48e876d0f9b3f90ae225a33359e2d3342f (patch) | |
tree | 58519e39b8faa1b67ff2ceb3f470b2f494b4816a /Source/cmTargetDepend.h | |
parent | cc054e94f81f028c5990729d7bffb5488547bcbe (diff) | |
parent | c62cd3e2aeb9ed7e3021bd9e5863294fd0441790 (diff) | |
download | CMake-2e075b48e876d0f9b3f90ae225a33359e2d3342f.zip CMake-2e075b48e876d0f9b3f90ae225a33359e2d3342f.tar.gz CMake-2e075b48e876d0f9b3f90ae225a33359e2d3342f.tar.bz2 |
Merge topic 'constify'
c62cd3e Constify autogen handling.
035b690 Autogen: Split AutoRcc handling into two methods
2fcafbf cmLocalGenerator: Constify target definitions access
a54eedd Constify cmGeneratorTarget access.
9edee62 Constify handling of link targets.
ef25ba8 Constify handling of target dependencies.
Diffstat (limited to 'Source/cmTargetDepend.h')
-rw-r--r-- | Source/cmTargetDepend.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/cmTargetDepend.h b/Source/cmTargetDepend.h index 258bacd..1feb072 100644 --- a/Source/cmTargetDepend.h +++ b/Source/cmTargetDepend.h @@ -20,17 +20,17 @@ class cmTarget; It may be marked as a 'link' or 'util' edge or both. */ class cmTargetDepend { - cmTarget* Target; + cmTarget const* Target; // The set order depends only on the Target, so we use // mutable members to acheive a map with set syntax. mutable bool Link; mutable bool Util; public: - cmTargetDepend(cmTarget* t): Target(t), Link(false), Util(false) {} - operator cmTarget*() const { return this->Target; } - cmTarget* operator->() const { return this->Target; } - cmTarget& operator*() const { return *this->Target; } + cmTargetDepend(cmTarget const* t): Target(t), Link(false), Util(false) {} + operator cmTarget const*() const { return this->Target; } + cmTarget const* operator->() const { return this->Target; } + cmTarget const& operator*() const { return *this->Target; } friend bool operator < (cmTargetDepend const& l, cmTargetDepend const& r) { return l.Target < r.Target; } void SetType(bool strong) const |