From 6e3e8827faf0bf2363ecf9035b5573e715e52fb2 Mon Sep 17 00:00:00 2001 From: Alex Turbov Date: Wed, 26 Oct 2022 15:09:54 +0400 Subject: Refactor: `cmGlobalGeneratorFactory::GetDocumentation` returns entry Before, a documentation entry was in/out parameter. Now it's a normal return value. This also makes possible to eliminate defaulted default ctor for `cmDocumentationEntry` for C++ 11. Also, simplify `cmake::AppendGlobalGeneratorsDocumentation()`. --- Source/cmGlobalJOMMakefileGenerator.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Source/cmGlobalJOMMakefileGenerator.h') diff --git a/Source/cmGlobalJOMMakefileGenerator.h b/Source/cmGlobalJOMMakefileGenerator.h index 332d1cf055..5e74875e28 100644 --- a/Source/cmGlobalJOMMakefileGenerator.h +++ b/Source/cmGlobalJOMMakefileGenerator.h @@ -13,7 +13,6 @@ class cmMakefile; class cmake; -struct cmDocumentationEntry; /** \class cmGlobalJOMMakefileGenerator * \brief Write a JOM makefiles. @@ -39,7 +38,7 @@ public: static std::string GetActualName() { return "NMake Makefiles JOM"; } /** Get the documentation entry for this generator. */ - static void GetDocumentation(cmDocumentationEntry& entry); + static cmDocumentationEntry GetDocumentation(); /** * Try to determine system information such as shared library -- cgit v1.2.1