Make cmGlobalGenerator::GetDocumentation() a static function

Making the function static allows us to call it directly,
without creating and removing an instance of the generator.
This commit is contained in:
Patrick Gansterer
2012-11-19 16:42:24 +01:00
committed by Brad King
parent 04ff866ca8
commit 5170a8800f
49 changed files with 70 additions and 82 deletions

View File

@@ -49,7 +49,7 @@ public:
/** Get the documentation entry for this factory */
virtual void GetDocumentation(cmDocumentationEntry& entry) const {
T().GetDocumentation(entry); }
T::GetDocumentation(entry); }
/** Get the names of the current registered generators */
virtual void GetGenerators(std::vector<std::string>& names) const {