From 190cabe7c1641482529bba34d46a38e4e33a2384 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 10 Jul 2014 16:02:46 -0400 Subject: cmTarget: Drop 'head' argument from ComputeLinkImplementationLanguages No call sites need it to be anything but 'this'. --- Source/cmTarget.cxx | 7 +++---- Source/cmTarget.h | 3 +-- 2 files changed, 4 insertions(+), 6 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 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::iterator li = languages.begin(); li != languages.end(); ++li) diff --git a/Source/cmTarget.h b/Source/cmTarget.h index dc67f1e..908e4ba 100644 --- a/Source/cmTarget.h +++ b/Source/cmTarget.h @@ -787,8 +787,7 @@ private: LinkImplementation& impl, cmTarget const* head) const; void ComputeLinkImplementationLanguages(const std::string& config, - LinkImplementation& impl, - cmTarget const* head) const; + LinkImplementation& impl) const; void ComputeLinkClosure(const std::string& config, LinkClosure& lc) const; void ExpandLinkItems(std::string const& prop, std::string const& value, -- cgit v0.12