summaryrefslogtreecommitdiff
path: root/Source/cmExtraKateGenerator.h
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2016-07-20 18:28:39 +0200
committerBrad King <brad.king@kitware.com>2016-08-03 09:43:00 -0400
commita354f60ce07cd67bd60161824a4e74bf9068fea4 (patch)
tree14c272760205567469ddd856a99e98ace6282841 /Source/cmExtraKateGenerator.h
parentfd59f9ad519c1c311c54569133797d9061e90558 (diff)
downloadcmake-a354f60ce07cd67bd60161824a4e74bf9068fea4.tar.gz
Refactor extra generator registration to use factories
This will allow additional information about the availability and capabilities of extra generators to be queried without actually creating them. Instead of a static NewFactory() method like the main generator factories have, use a static GetFactory() method to get a pointer to a statically allocated extra generator factory. This simplifies memory management.
Diffstat (limited to 'Source/cmExtraKateGenerator.h')
-rw-r--r--Source/cmExtraKateGenerator.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/Source/cmExtraKateGenerator.h b/Source/cmExtraKateGenerator.h
index 410d55210c..3d1605265c 100644
--- a/Source/cmExtraKateGenerator.h
+++ b/Source/cmExtraKateGenerator.h
@@ -26,18 +26,7 @@ class cmExtraKateGenerator : public cmExternalMakefileProjectGenerator
public:
cmExtraKateGenerator();
- std::string GetName() const CM_OVERRIDE
- {
- return cmExtraKateGenerator::GetActualName();
- }
- static std::string GetActualName() { return "Kate"; }
- static cmExternalMakefileProjectGenerator* New()
- {
- return new cmExtraKateGenerator;
- }
- /** Get the documentation entry for this generator. */
- void GetDocumentation(cmDocumentationEntry& entry,
- const std::string& fullName) const CM_OVERRIDE;
+ static cmExternalMakefileProjectGeneratorFactory* GetFactory();
void Generate() CM_OVERRIDE;