summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog
diff options
context:
space:
mode:
authorArtur Ryt <artur.ryt@gmail.com>2018-11-30 18:00:57 (GMT)
committerBrad King <brad.king@kitware.com>2019-01-18 17:57:32 (GMT)
commit7408cd39298dfce442d7aa539a90a227433865d5 (patch)
tree1910148c8048133dc1ff4c557d070c17940cbe9b /Source/QtDialog
parenta61c061b6143cb6d8920b1b5796a867c0f104556 (diff)
downloadCMake-7408cd39298dfce442d7aa539a90a227433865d5.zip
CMake-7408cd39298dfce442d7aa539a90a227433865d5.tar.gz
CMake-7408cd39298dfce442d7aa539a90a227433865d5.tar.bz2
cmake: Return generator docs directly
The GetGeneratorDocumentation() function was not accurately named and required the vector to populate to be passed as a function argument. This commit makes the slightly renamed function return by value, making it a true getter as implied by its name. Some minor refactoring of the implementation also makes the steps of populating the vector clearer.
Diffstat (limited to 'Source/QtDialog')
-rw-r--r--Source/QtDialog/CMakeSetup.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/QtDialog/CMakeSetup.cxx b/Source/QtDialog/CMakeSetup.cxx
index b4307bb..9f4e48e 100644
--- a/Source/QtDialog/CMakeSetup.cxx
+++ b/Source/QtDialog/CMakeSetup.cxx
@@ -69,8 +69,7 @@ int main(int argc, char** argv)
hcm.SetHomeOutputDirectory("");
hcm.AddCMakePaths();
- std::vector<cmDocumentationEntry> generators;
- hcm.GetGeneratorDocumentation(generators);
+ auto generators = hcm.GetGeneratorsDocumentation();
doc.SetName("cmake");
doc.SetSection("Name", cmDocumentationName);
doc.SetSection("Usage", cmDocumentationUsage);