summaryrefslogtreecommitdiff
path: root/Source/CPack/cmCPackGeneratorFactory.h
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2014-02-03 21:04:22 -0500
committerBrad King <brad.king@kitware.com>2014-03-08 13:05:30 -0500
commit9f48d3bac22118fc1dddbf1eec6da4cb24c585c4 (patch)
tree25a33c0250d6b3a5c9a7f602f91e4f5cd642bb7a /Source/CPack/cmCPackGeneratorFactory.h
parent971eb4d56e3d3c9bc11acf6082e21d5388d808bb (diff)
downloadcmake-9f48d3bac22118fc1dddbf1eec6da4cb24c585c4.tar.gz
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.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/CPack/cmCPackGeneratorFactory.h b/Source/CPack/cmCPackGeneratorFactory.h
index dff2e49eb6..e6f74f9e8d 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;