summaryrefslogtreecommitdiffstats
path: root/Source/cmDocumentation.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-01-22 15:52:24 (GMT)
committerBrad King <brad.king@kitware.com>2007-01-22 15:52:24 (GMT)
commit1e566707daeb7ce71bee2c1c09b412e603f04bb5 (patch)
tree63b8c2f37e2f36ff31e40c4bdfa22bee27de3ab6 /Source/cmDocumentation.cxx
parentd0a49dbd91bdd0b0cf035e07d567f6a96be2cc60 (diff)
downloadCMake-1e566707daeb7ce71bee2c1c09b412e603f04bb5.zip
CMake-1e566707daeb7ce71bee2c1c09b412e603f04bb5.tar.gz
CMake-1e566707daeb7ce71bee2c1c09b412e603f04bb5.tar.bz2
COMP: Patch from Alex for const correctness.
Diffstat (limited to 'Source/cmDocumentation.cxx')
-rw-r--r--Source/cmDocumentation.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmDocumentation.cxx b/Source/cmDocumentation.cxx
index 840b5c0..a03d267 100644
--- a/Source/cmDocumentation.cxx
+++ b/Source/cmDocumentation.cxx
@@ -1424,7 +1424,7 @@ void cmDocumentation::SetSection(const cmDocumentationEntry* header,
}
//----------------------------------------------------------------------------
-const char* cmDocumentation::GetNameString()
+const char* cmDocumentation::GetNameString() const
{
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) ||
(strcmp(arg, "/?") == 0));