From 4c763dd1f1c922606660e275372cc6313ac42535 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 10 Jul 2014 16:06:36 -0400 Subject: cmTarget: Drop 'head' argument from GetLanguages No call sites need it to be anything but 'this'. --- Source/cmTarget.cxx | 9 ++++----- Source/cmTarget.h | 3 +-- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index d74c66b..e1ce4dd 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -5419,11 +5419,10 @@ cmTarget::GetObjectLibrariesCMP0026(std::vector& objlibs) const //---------------------------------------------------------------------------- void cmTarget::GetLanguages(std::set& languages, - const std::string& config, - cmTarget const* head) const + const std::string& config) const { std::vector sourceFiles; - this->GetSourceFiles(sourceFiles, config, head); + this->GetSourceFiles(sourceFiles, config, this); for(std::vector::const_iterator i = sourceFiles.begin(); i != sourceFiles.end(); ++i) { @@ -5459,7 +5458,7 @@ void cmTarget::GetLanguages(std::set& languages, for(std::vector::const_iterator i = objectLibraries.begin(); i != objectLibraries.end(); ++i) { - (*i)->GetLanguages(languages, config, head); + (*i)->GetLanguages(languages, config); } } @@ -6551,7 +6550,7 @@ cmTarget::ComputeLinkImplementationLanguages(const std::string& config, // This target needs runtime libraries for its source languages. std::set languages; // Get languages used in our source files. - this->GetLanguages(languages, config, this); + this->GetLanguages(languages, config); // 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 908e4ba..d5fb5e8 100644 --- a/Source/cmTarget.h +++ b/Source/cmTarget.h @@ -491,8 +491,7 @@ public: // information to forward these property changes to the targets // until we have per-target object file properties. void GetLanguages(std::set& languages, - std::string const& config, - cmTarget const* head = 0) const; + std::string const& config) const; /** Return whether this target is an executable with symbol exports enabled. */ -- cgit v0.12