diff options
author | Brad King <brad.king@kitware.com> | 2014-07-10 20:06:36 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-07-14 13:46:53 (GMT) |
commit | 4c763dd1f1c922606660e275372cc6313ac42535 (patch) | |
tree | f51f973e0bbbe099d63456faf614259f89ae79c0 /Source/cmTarget.cxx | |
parent | 190cabe7c1641482529bba34d46a38e4e33a2384 (diff) | |
download | CMake-4c763dd1f1c922606660e275372cc6313ac42535.zip CMake-4c763dd1f1c922606660e275372cc6313ac42535.tar.gz CMake-4c763dd1f1c922606660e275372cc6313ac42535.tar.bz2 |
cmTarget: Drop 'head' argument from GetLanguages
No call sites need it to be anything but '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 d74c66b..e1ce4dd 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -5419,11 +5419,10 @@ cmTarget::GetObjectLibrariesCMP0026(std::vector<cmTarget*>& objlibs) const //---------------------------------------------------------------------------- void cmTarget::GetLanguages(std::set<std::string>& languages, - const std::string& config, - cmTarget const* head) const + const std::string& config) const { std::vector<cmSourceFile*> sourceFiles; - this->GetSourceFiles(sourceFiles, config, head); + this->GetSourceFiles(sourceFiles, config, this); for(std::vector<cmSourceFile*>::const_iterator i = sourceFiles.begin(); i != sourceFiles.end(); ++i) { @@ -5459,7 +5458,7 @@ void cmTarget::GetLanguages(std::set<std::string>& languages, for(std::vector<cmTarget*>::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<std::string> 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<std::string>::iterator li = languages.begin(); li != languages.end(); ++li) |