stringapi: Use strings for documentation names

This commit is contained in:
Ben Boeckel 2014-02-07 15:35:30 -05:00 committed by Brad King
parent dddbd2c7fa
commit 38c7544578
2 changed files with 3 additions and 3 deletions

View File

@ -477,9 +477,9 @@ bool cmDocumentation::CheckOptions(int argc, const char* const* argv,
} }
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
void cmDocumentation::SetName(const char* name) void cmDocumentation::SetName(const std::string& name)
{ {
this->NameString = name?name:""; this->NameString = name;
} }
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------

View File

@ -56,7 +56,7 @@ public:
void SetShowGenerators(bool showGen) { this->ShowGenerators = showGen; } void SetShowGenerators(bool showGen) { this->ShowGenerators = showGen; }
/** Set the program name for standard document generation. */ /** Set the program name for standard document generation. */
void SetName(const char* name); void SetName(const std::string& name);
/** Set a section of the documentation. Typical sections include Name, /** Set a section of the documentation. Typical sections include Name,
Usage, Description, Options */ Usage, Description, Options */