summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-06-16 13:55:20 (GMT)
committerBrad King <brad.king@kitware.com>2014-06-23 13:17:06 (GMT)
commit9f3ed029ce830f0395e102258758a4b3680e5d0f (patch)
treef2d59ee39894ad998e94bad38d7cc6e8e3458557 /Source/cmTarget.cxx
parent6f0951af011d28366cf31ff621238f026cb8d895 (diff)
downloadCMake-9f3ed029ce830f0395e102258758a4b3680e5d0f.zip
CMake-9f3ed029ce830f0395e102258758a4b3680e5d0f.tar.gz
CMake-9f3ed029ce830f0395e102258758a4b3680e5d0f.tar.bz2
cmTarget: Constify GetTransitivePropertyTargets results
Populate a vector of "cmTarget const*" instead of "cmTarget*".
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index cc647af..96f28af 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -6197,7 +6197,7 @@ cmTarget::GetLinkImplementationClosure(const std::string& config) const
//----------------------------------------------------------------------------
void cmTarget::GetTransitivePropertyTargets(const std::string& config,
cmTarget const* headTarget,
- std::vector<cmTarget*> &tgts) const
+ std::vector<cmTarget const*> &tgts) const
{
cmTarget::LinkInterface const* iface
= this->GetLinkInterfaceLibraries(config, headTarget);
@@ -6212,7 +6212,7 @@ void cmTarget::GetTransitivePropertyTargets(const std::string& config,
for(std::vector<std::string>::const_iterator it = iface->Libraries.begin();
it != iface->Libraries.end(); ++it)
{
- if (cmTarget* tgt = headTarget->GetMakefile()
+ if (cmTarget const* tgt = headTarget->GetMakefile()
->FindTargetToUse(*it))
{
tgts.push_back(tgt);