COMP: Patch from Alex for const correctness.
This commit is contained in:
parent
d0a49dbd91
commit
1e566707da
@ -1424,7 +1424,7 @@ void cmDocumentation::SetSection(const cmDocumentationEntry* header,
|
|||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
const char* cmDocumentation::GetNameString()
|
const char* cmDocumentation::GetNameString() const
|
||||||
{
|
{
|
||||||
if(this->NameString.length() > 0)
|
if(this->NameString.length() > 0)
|
||||||
{
|
{
|
||||||
@ -1437,7 +1437,7 @@ const char* cmDocumentation::GetNameString()
|
|||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
bool cmDocumentation::IsOption(const char* arg)
|
bool cmDocumentation::IsOption(const char* arg) const
|
||||||
{
|
{
|
||||||
return ((arg[0] == '-') || (strcmp(arg, "/V") == 0) ||
|
return ((arg[0] == '-') || (strcmp(arg, "/V") == 0) ||
|
||||||
(strcmp(arg, "/?") == 0));
|
(strcmp(arg, "/?") == 0));
|
||||||
|
@ -155,8 +155,8 @@ private:
|
|||||||
const cmDocumentationEntry* section,
|
const cmDocumentationEntry* section,
|
||||||
const cmDocumentationEntry* footer,
|
const cmDocumentationEntry* footer,
|
||||||
std::vector<cmDocumentationEntry>&);
|
std::vector<cmDocumentationEntry>&);
|
||||||
const char* GetNameString();
|
const char* GetNameString() const;
|
||||||
bool IsOption(const char* arg);
|
bool IsOption(const char* arg) const;
|
||||||
|
|
||||||
std::string NameString;
|
std::string NameString;
|
||||||
std::vector<cmDocumentationEntry> NameSection;
|
std::vector<cmDocumentationEntry> NameSection;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user