Add 'const' qualifier to some cmCommand members

Use const_cast for the special case in cmFindBase where
GetFullDocumentation calls GenerateDocumentation.
This commit is contained in:
Yury G. Kudryashov
2012-02-25 10:49:24 +04:00
committed by Brad King
parent 261491fe17
commit 737c49a357
116 changed files with 420 additions and 420 deletions
+4 -4
View File
@@ -41,18 +41,18 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName()
virtual const char* GetName() const
{return "execute_process";}
/**
* This determines if the command is invoked when in script mode.
*/
virtual bool IsScriptable() { return true; }
virtual bool IsScriptable() const { return true; }
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Execute one or more child processes.";
}
@@ -60,7 +60,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" execute_process(COMMAND <cmd1> [args1...]]\n"