summaryrefslogtreecommitdiffstats
path: root/Source/cmCommand.h
diff options
context:
space:
mode:
authorYury G. Kudryashov <urkud.urkud@gmail.com>2012-02-25 06:49:24 (GMT)
committerBrad King <brad.king@kitware.com>2012-02-29 18:27:04 (GMT)
commit737c49a357e7a97b213857fd899081d42f38c143 (patch)
tree7cc345fc263988c6a31bbd610228fe9cf92c80e8 /Source/cmCommand.h
parent261491fe171edb41c2dabce0fd90f282fb11bf6a (diff)
downloadCMake-737c49a357e7a97b213857fd899081d42f38c143.zip
CMake-737c49a357e7a97b213857fd899081d42f38c143.tar.gz
CMake-737c49a357e7a97b213857fd899081d42f38c143.tar.bz2
Add 'const' qualifier to some cmCommand members
Use const_cast for the special case in cmFindBase where GetFullDocumentation calls GenerateDocumentation.
Diffstat (limited to 'Source/cmCommand.h')
-rw-r--r--Source/cmCommand.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/cmCommand.h b/Source/cmCommand.h
index e046096..4faaee3 100644
--- a/Source/cmCommand.h
+++ b/Source/cmCommand.h
@@ -96,7 +96,7 @@ public:
/**
* This determines if the command is invoked when in script mode.
*/
- virtual bool IsScriptable()
+ virtual bool IsScriptable() const
{
return false;
}
@@ -105,7 +105,7 @@ public:
* This determines if usage of the method is discouraged or not.
* This is currently only used for generating the documentation.
*/
- virtual bool IsDiscouraged()
+ virtual bool IsDiscouraged() const
{
return false;
}
@@ -116,7 +116,7 @@ public:
* cmMacroHelperCommand and cmFunctionHelperCommand
* which cannot provide appropriate documentation.
*/
- virtual bool ShouldAppearInDocumentation()
+ virtual bool ShouldAppearInDocumentation() const
{
return true;
}
@@ -124,17 +124,17 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() = 0;
+ virtual const char* GetName() const = 0;
/**
* Succinct documentation.
*/
- virtual const char* GetTerseDocumentation() = 0;
+ virtual const char* GetTerseDocumentation() const = 0;
/**
* More documentation.
*/
- virtual const char* GetFullDocumentation() = 0;
+ virtual const char* GetFullDocumentation() const = 0;
/**
* Enable the command.
@@ -151,7 +151,7 @@ public:
/**
* Query whether the command is enabled.
*/
- bool GetEnabled()
+ bool GetEnabled() const
{return this->Enabled;}
/**