diff options
author | Brad King <brad.king@kitware.com> | 2014-06-11 14:39:13 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-06-23 13:14:44 (GMT) |
commit | 2f0004c143455387c4b6ecac2458fcec4d57643f (patch) | |
tree | 33e375bdfd126053c0314e90117ac7e188741129 /Source/cmTarget.cxx | |
parent | 962f2c3529d39e293549d16963c59f1508c5a81c (diff) | |
download | CMake-2f0004c143455387c4b6ecac2458fcec4d57643f.zip CMake-2f0004c143455387c4b6ecac2458fcec4d57643f.tar.gz CMake-2f0004c143455387c4b6ecac2458fcec4d57643f.tar.bz2 |
cmTarget: Remove 'head' argument from GetTransitiveTargetClosure
The method is never called with any headTarget besides "this".
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index ff4ded1..6759a3d 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -5207,7 +5207,7 @@ PropertyType checkInterfacePropertyCompatibility(cmTarget const* tgt, || (!impliedByUse && !explicitlySet)); std::vector<cmTarget*> deps; - tgt->GetTransitiveTargetClosure(config, tgt, deps); + tgt->GetTransitiveTargetClosure(config, deps); if(deps.empty()) { @@ -5423,7 +5423,7 @@ bool isLinkDependentProperty(cmTarget const* tgt, const std::string &p, const std::string& config) { std::vector<cmTarget*> deps; - tgt->GetTransitiveTargetClosure(config, tgt, deps); + tgt->GetTransitiveTargetClosure(config, deps); if(deps.empty()) { @@ -6143,18 +6143,17 @@ void processILibs(const std::string& config, //---------------------------------------------------------------------------- void cmTarget::GetTransitiveTargetClosure(const std::string& config, - cmTarget const* headTarget, std::vector<cmTarget*> &tgts) const { std::set<cmTarget*> emitted; cmTarget::LinkImplementation const* impl - = this->GetLinkImplementationLibraries(config, headTarget); + = this->GetLinkImplementationLibraries(config, this); for(std::vector<std::string>::const_iterator it = impl->Libraries.begin(); it != impl->Libraries.end(); ++it) { - processILibs(config, headTarget, *it, tgts, emitted); + processILibs(config, this, *it, tgts, emitted); } } |