summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-07-10 20:02:46 (GMT)
committerBrad King <brad.king@kitware.com>2014-07-14 13:46:53 (GMT)
commit190cabe7c1641482529bba34d46a38e4e33a2384 (patch)
tree59db70d59a91460a056650a11e4cc9a29b6a7b6e /Source/cmTarget.cxx
parentc72642f927e65e66f602406380349f928a961e77 (diff)
downloadCMake-190cabe7c1641482529bba34d46a38e4e33a2384.zip
CMake-190cabe7c1641482529bba34d46a38e4e33a2384.tar.gz
CMake-190cabe7c1641482529bba34d46a38e4e33a2384.tar.bz2
cmTarget: Drop 'head' argument from ComputeLinkImplementationLanguages
No call sites need it to be anything but 'this'.
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index a740bc3..d74c66b 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -6405,7 +6405,7 @@ cmTarget::GetLinkImplementation(const std::string& config) const
if(!impl.LanguagesDone)
{
impl.LanguagesDone = true;
- this->ComputeLinkImplementationLanguages(config, impl, this);
+ this->ComputeLinkImplementationLanguages(config, impl);
}
return &impl;
}
@@ -6546,13 +6546,12 @@ void cmTarget::ComputeLinkImplementation(const std::string& config,
//----------------------------------------------------------------------------
void
cmTarget::ComputeLinkImplementationLanguages(const std::string& config,
- LinkImplementation& impl,
- cmTarget const* head) const
+ LinkImplementation& impl) const
{
// This target needs runtime libraries for its source languages.
std::set<std::string> languages;
// Get languages used in our source files.
- this->GetLanguages(languages, config, head);
+ this->GetLanguages(languages, config, this);
// Copy the set of langauges to the link implementation.
for(std::set<std::string>::iterator li = languages.begin();
li != languages.end(); ++li)