diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2014-02-04 02:04:22 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-03-08 18:05:30 (GMT) |
commit | 9f48d3bac22118fc1dddbf1eec6da4cb24c585c4 (patch) | |
tree | 25a33c0250d6b3a5c9a7f602f91e4f5cd642bb7a /Source/CPack/cmCPackGeneratorFactory.h | |
parent | 971eb4d56e3d3c9bc11acf6082e21d5388d808bb (diff) | |
download | CMake-9f48d3bac22118fc1dddbf1eec6da4cb24c585c4.zip CMake-9f48d3bac22118fc1dddbf1eec6da4cb24c585c4.tar.gz CMake-9f48d3bac22118fc1dddbf1eec6da4cb24c585c4.tar.bz2 |
stringapi: Use strings in CPack generator parameters
Most of these are turned into strings in the body of the method
(multiple times in some cases). Accept strings to simplify the API and
keep string construction down.
Diffstat (limited to 'Source/CPack/cmCPackGeneratorFactory.h')
-rw-r--r-- | Source/CPack/cmCPackGeneratorFactory.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/CPack/cmCPackGeneratorFactory.h b/Source/CPack/cmCPackGeneratorFactory.h index dff2e49..e6f74f9 100644 --- a/Source/CPack/cmCPackGeneratorFactory.h +++ b/Source/CPack/cmCPackGeneratorFactory.h @@ -31,12 +31,12 @@ public: ~cmCPackGeneratorFactory(); //! Get the generator - cmCPackGenerator* NewGenerator(const char* name); + cmCPackGenerator* NewGenerator(const std::string& name); void DeleteGenerator(cmCPackGenerator* gen); typedef cmCPackGenerator* CreateGeneratorCall(); - void RegisterGenerator(const char* name, + void RegisterGenerator(const std::string& name, const char* generatorDescription, CreateGeneratorCall* createGenerator); @@ -47,7 +47,7 @@ public: { return this->GeneratorDescriptions; } private: - cmCPackGenerator* NewGeneratorInternal(const char* name); + cmCPackGenerator* NewGeneratorInternal(const std::string& name); std::vector<cmCPackGenerator*> Generators; typedef std::map<cmStdString, CreateGeneratorCall*> t_GeneratorCreatorsMap; |