stringapi: Use strings for documentation names
This commit is contained in:
parent
dddbd2c7fa
commit
38c7544578
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
|
|
@ -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 */
|
||||||
|
|
Loading…
Reference in New Issue